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

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: Various cleanups Created 5 years, 7 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..31ff5caf904385509845224698067f995a99f7a3 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,15 @@ namespace file_system_provider {
namespace operations {
// Base class for operation bridges between fileapi and providing extensions.
-class Operation : public RequestManager::HandlerInterface {
+template <int source>
+class Operation : public RequestManager::HandlerInterface,
+ public Source_Traits<source> {
public:
+ typedef typename Source_Traits<source>::EventRouterType EventRouterType;
typedef base::Callback<bool(scoped_ptr<extensions::Event> event)>
DispatchEventImplCallback;
- Operation(extensions::EventRouter* event_router,
+ Operation(typename Operation<source>::EventRouterType* event_router,
const ProvidedFileSystemInfo& file_system_info);
~Operation() override;

Powered by Google App Engine
This is Rietveld 408576698