summaryrefslogtreecommitdiff
path: root/chromium/chromeos/components/drivefs
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chromeos/components/drivefs')
-rw-r--r--chromium/chromeos/components/drivefs/BUILD.gn4
-rw-r--r--chromium/chromeos/components/drivefs/mojom/drivefs.mojom7
2 files changed, 9 insertions, 2 deletions
diff --git a/chromium/chromeos/components/drivefs/BUILD.gn b/chromium/chromeos/components/drivefs/BUILD.gn
index 2892b24fd4e..b6aaff101aa 100644
--- a/chromium/chromeos/components/drivefs/BUILD.gn
+++ b/chromium/chromeos/components/drivefs/BUILD.gn
@@ -6,8 +6,6 @@ assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
component("drivefs") {
sources = [
- "drive_file_stream_service_provider_delegate.cc",
- "drive_file_stream_service_provider_delegate.h",
"drivefs_host.cc",
"drivefs_host.h",
"drivefs_host_observer.h",
@@ -27,6 +25,7 @@ component("drivefs") {
"//mojo/public/cpp/platform",
"//net",
"//services/identity/public/mojom",
+ "//services/network/public/cpp:cpp",
"//services/service_manager/public/cpp",
]
defines = [ "IS_DRIVEFS_IMPL" ]
@@ -63,6 +62,7 @@ source_set("unit_tests") {
"//mojo/public/cpp/bindings",
"//net",
"//services/identity/public/mojom",
+ "//services/network/public/cpp:cpp",
"//services/service_manager/public/cpp",
"//services/service_manager/public/cpp/test:test_support",
"//testing/gmock",
diff --git a/chromium/chromeos/components/drivefs/mojom/drivefs.mojom b/chromium/chromeos/components/drivefs/mojom/drivefs.mojom
index 1e75a03f346..5eb0461992b 100644
--- a/chromium/chromeos/components/drivefs/mojom/drivefs.mojom
+++ b/chromium/chromeos/components/drivefs/mojom/drivefs.mojom
@@ -29,6 +29,13 @@ interface DriveFs {
// Sets the file at |path| to pinned or unpinned depending on the value of
// |pinned|.
SetPinned(mojo_base.mojom.FilePath path, bool pinned) => (FileError error);
+
+ // Update DriveFS with the current network state, including whether the
+ // network is available and whether syncing should be paused.
+ UpdateNetworkState(bool pause_syncing, bool is_offline);
+
+ // Reset DriveFS cache.
+ ResetCache() => (FileError error);
};
// Implemented by Chrome, used from DriveFS.