Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.h

Issue 12304015: Migrated sync_file_status, sync_action and sync_direction from fileapi:: namespace to sync_file_sys… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 25 matching lines...) Expand all
36 virtual void Shutdown() OVERRIDE; 36 virtual void Shutdown() OVERRIDE;
37 37
38 // sync_file_system::SyncEventObserver interface implementation. 38 // sync_file_system::SyncEventObserver interface implementation.
39 virtual void OnSyncStateUpdated( 39 virtual void OnSyncStateUpdated(
40 const GURL& app_origin, 40 const GURL& app_origin,
41 sync_file_system::SyncEventObserver::SyncServiceState state, 41 sync_file_system::SyncEventObserver::SyncServiceState state,
42 const std::string& description) OVERRIDE; 42 const std::string& description) OVERRIDE;
43 43
44 virtual void OnFileSynced( 44 virtual void OnFileSynced(
45 const fileapi::FileSystemURL& url, 45 const fileapi::FileSystemURL& url,
46 fileapi::SyncFileStatus status, 46 sync_file_system::SyncFileStatus status,
47 fileapi::SyncAction action, 47 sync_file_system::SyncAction action,
48 fileapi::SyncDirection direction) OVERRIDE; 48 sync_file_system::SyncDirection direction) OVERRIDE;
49 49
50 private: 50 private:
51 const std::string& GetExtensionId(const GURL& app_origin); 51 const std::string& GetExtensionId(const GURL& app_origin);
52 52
53 Profile* profile_; 53 Profile* profile_;
54 54
55 // Not owned. If not null, then this is registered to SyncFileSystemService. 55 // Not owned. If not null, then this is registered to SyncFileSystemService.
56 sync_file_system::SyncFileSystemService* sync_service_; 56 sync_file_system::SyncFileSystemService* sync_service_;
57 std::string service_name_; 57 std::string service_name_;
58 58
59 void BroadcastOrDispatchEvent(const GURL& app_origin, 59 void BroadcastOrDispatchEvent(const GURL& app_origin,
60 const std::string& event_name, 60 const std::string& event_name,
61 scoped_ptr<base::ListValue> value); 61 scoped_ptr<base::ListValue> value);
62 62
63 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncEventObserver); 63 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncEventObserver);
64 }; 64 };
65 65
66 } // namespace extensions 66 } // namespace extensions
67 67
68 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_O BSERVER_H_ 68 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_O BSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698