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

Unified Diff: chrome/browser/extensions/platform_app_intent_dispatcher.h

Issue 9845003: Pass command line arguments onto platform apps which provide the right intent. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed unneeded header Created 8 years, 9 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/extensions/platform_app_intent_dispatcher.h
diff --git a/chrome/browser/extensions/platform_app_intent_dispatcher.h b/chrome/browser/extensions/platform_app_intent_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..46e4910d692513822722d0011bfd8de48d96f605
--- /dev/null
+++ b/chrome/browser/extensions/platform_app_intent_dispatcher.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_
+#define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_
+#pragma once
+
+#include "base/memory/ref_counted.h"
+
+class ExtensionHost;
+
+namespace extensions {
+
+class PlatformAppIntentDispatcher
+ : public base::RefCountedThreadSafe<PlatformAppIntentDispatcher> {
+ public:
+ static void DispatchIntentData(ExtensionHost* host);
+
+ private:
+ explicit PlatformAppIntentDispatcher(ExtensionHost* host);
+ void DoDispatchIntentData();
+
+ ExtensionHost* host_;
+
+ DISALLOW_COPY_AND_ASSIGN(PlatformAppIntentDispatcher);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698