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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/operation.h

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved several modules to chromeos folder. Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/file_system_provider/operations/operation.h
diff --git a/chrome/browser/chromeos/file_system_provider/operations/operation.h b/chrome/browser/chromeos/file_system_provider/operations/operation.h
index 3d9cfcd70bb645a02de11290d3682e838c89858b..14c73701ad7c282097cebc2c03c392cf06b5a852 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/operation.h
+++ b/chrome/browser/chromeos/file_system_provider/operations/operation.h
@@ -19,7 +19,6 @@ class ListValue;
namespace extensions {
struct Event;
-class EventRouter;
} // namespace extensions
namespace chromeos {
@@ -27,12 +26,14 @@ namespace file_system_provider {
namespace operations {
// Base class for operation bridges between fileapi and providing extensions.
-class Operation : public RequestManager::HandlerInterface {
+template <class DestinationPolicy>
+class Operation : public RequestManager::HandlerInterface,
+ public DestinationPolicy {
public:
typedef base::Callback<bool(scoped_ptr<extensions::Event> event)>
DispatchEventImplCallback;
- Operation(extensions::EventRouter* event_router,
+ Operation(typename DestinationPolicy::EventRouterType* event_router,
const ProvidedFileSystemInfo& file_system_info);
~Operation() override;
@@ -60,7 +61,7 @@ class Operation : public RequestManager::HandlerInterface {
private:
DispatchEventImplCallback dispatch_event_impl_;
- DISALLOW_COPY_AND_ASSIGN(Operation);
+ DISALLOW_COPY_AND_ASSIGN(Operation<DestinationPolicy>);
};
} // namespace operations

Powered by Google App Engine
This is Rietveld 408576698