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

Side by Side Diff: chrome/browser/extensions/api/app_runtime/app_runtime_api.h

Issue 10875027: Restart running apps when chrome restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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/app_runtime/app_runtime_api.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_APP_RUNTIME_APP_RUNTIME_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_APP_RUNTIME_APP_RUNTIME_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_APP_RUNTIME_APP_RUNTIME_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_APP_RUNTIME_APP_RUNTIME_API_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
11 class Profile; 11 class Profile;
12 12
13 namespace content { 13 namespace content {
14 class WebContents; 14 class WebContents;
15 class WebIntentsDispatcher; 15 class WebIntentsDispatcher;
16 } 16 }
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 class Extension; 20 class Extension;
21 21
22 class AppEventRouter { 22 class AppEventRouter {
23 public: 23 public:
24 // Dispatches the onLaunched event to the given app, providing no launch 24 // Dispatches the onLaunched event to the given app, providing no launch
25 // data. 25 // data.
26 static void DispatchOnLaunchedEvent(Profile* profile, 26 static void DispatchOnLaunchedEvent(Profile* profile,
27 const Extension* extension); 27 const Extension* extension);
28 static void DispatchOnRestartedEvent(Profile* profile,
29 const Extension* extension);
28 30
29 // Dispatches the onLaunched event to the given app, providing launch data of 31 // Dispatches the onLaunched event to the given app, providing launch data of
30 // the form: 32 // the form:
31 // { 33 // {
32 // "intent" : { 34 // "intent" : {
33 // "action" : |action|, 35 // "action" : |action|,
34 // "type" : "chrome-extension://fileentry", 36 // "type" : "chrome-extension://fileentry",
35 // "data" : a FileEntry, 37 // "data" : a FileEntry,
36 // "postResults" : a null function, 38 // "postResults" : a null function,
37 // "postFailure" : a null function 39 // "postFailure" : a null function
(...skipping 25 matching lines...) Expand all
63 DECLARE_EXTENSION_FUNCTION_NAME("app.runtime.postIntentResponse"); 65 DECLARE_EXTENSION_FUNCTION_NAME("app.runtime.postIntentResponse");
64 66
65 protected: 67 protected:
66 virtual ~AppRuntimePostIntentResponseFunction() {} 68 virtual ~AppRuntimePostIntentResponseFunction() {}
67 virtual bool RunImpl() OVERRIDE; 69 virtual bool RunImpl() OVERRIDE;
68 }; 70 };
69 71
70 } // namespace extensions 72 } // namespace extensions
71 73
72 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_RUNTIME_APP_RUNTIME_API_H_ 74 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_RUNTIME_APP_RUNTIME_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/app_runtime/app_runtime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698