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

Side by Side Diff: chrome/browser/extensions/api/runtime/runtime_api.h

Issue 10388186: RefCounted types should not have public destructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
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_RUNTIME_RUNTIME_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
11 class Extension; 11 class Extension;
12 class ExtensionHost; 12 class ExtensionHost;
13 class Profile; 13 class Profile;
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 class RuntimeEventRouter { 17 class RuntimeEventRouter {
18 public: 18 public:
19 // Dispatches the onInstalled event to the given extension. 19 // Dispatches the onInstalled event to the given extension.
20 static void DispatchOnInstalledEvent(Profile* profile, 20 static void DispatchOnInstalledEvent(Profile* profile,
21 const std::string& extension_id); 21 const std::string& extension_id);
22 }; 22 };
23 23
24 class RuntimeGetBackgroundPageFunction : public AsyncExtensionFunction { 24 class RuntimeGetBackgroundPageFunction : public AsyncExtensionFunction {
25 public:
26 DECLARE_EXTENSION_FUNCTION_NAME("runtime.getBackgroundPage");
27
25 protected: 28 protected:
29 virtual ~RuntimeGetBackgroundPageFunction() {}
26 virtual bool RunImpl() OVERRIDE; 30 virtual bool RunImpl() OVERRIDE;
27 DECLARE_EXTENSION_FUNCTION_NAME("runtime.getBackgroundPage"); 31
28 private: 32 private:
29 void OnPageLoaded(ExtensionHost*); 33 void OnPageLoaded(ExtensionHost*);
30 }; 34 };
31 35
32 } // namespace extensions 36 } // namespace extensions
33 37
34 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ 38 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/media_gallery/media_gallery_api.h ('k') | chrome/browser/extensions/api/socket/socket_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698