Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / drive / drive_integration_service.h
index cce3454..b5ce9a6 100644 (file)
@@ -28,6 +28,7 @@ class DebugInfoCollector;
 class DownloadHandler;
 class DriveAppRegistry;
 class DriveServiceInterface;
+class EventLogger;
 class FileSystemInterface;
 class JobListInterface;
 
@@ -67,8 +68,8 @@ class DriveIntegrationService
  public:
   class PreferenceWatcher;
 
-  // test_drive_service, test_cache_root and test_file_system are used by tests
-  // to inject customized instances.
+  // test_drive_service, test_mount_point_name, test_cache_root and
+  // test_file_system are used by tests to inject customized instances.
   // Pass NULL or the empty value when not interested.
   // |preference_watcher| observes the drive enable preference, and sets the
   // enable state when changed. It can be NULL. The ownership is taken by
@@ -77,6 +78,7 @@ class DriveIntegrationService
       Profile* profile,
       PreferenceWatcher* preference_watcher,
       DriveServiceInterface* test_drive_service,
+      const std::string& test_mount_point_name,
       const base::FilePath& test_cache_root,
       FileSystemInterface* test_file_system);
   virtual ~DriveIntegrationService();
@@ -97,10 +99,8 @@ class DriveIntegrationService
   virtual void OnNotificationReceived() OVERRIDE;
   virtual void OnPushNotificationEnabled(bool enabled) OVERRIDE;
 
-  DriveServiceInterface* drive_service() {
-    return drive_service_.get();
-  }
-
+  EventLogger* event_logger() { return logger_.get(); }
+  DriveServiceInterface* drive_service() { return drive_service_.get(); }
   DebugInfoCollector* debug_info_collector() {
     return debug_info_collector_.get();
   }
@@ -155,8 +155,11 @@ class DriveIntegrationService
   Profile* profile_;
   State state_;
   bool enabled_;
+  // Custom mount point name that can be injected for testing in constructor.
+  std::string mount_point_name_;
 
   base::FilePath cache_root_directory_;
+  scoped_ptr<EventLogger> logger_;
   scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
   scoped_ptr<internal::ResourceMetadataStorage,
              util::DestroyHelper> metadata_storage_;