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

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

Issue 16470003: Add chrome.runtime.getPackageDirectoryEntry. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/runtime/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_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 7
8 #include "chrome/browser/extensions/extension_function.h" 8 #include "chrome/browser/extensions/extension_function.h"
9 #include "content/public/browser/notification_observer.h" 9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h" 10 #include "content/public/browser/notification_registrar.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 class RuntimeGetPlatformInfoFunction : public SyncExtensionFunction { 103 class RuntimeGetPlatformInfoFunction : public SyncExtensionFunction {
104 public: 104 public:
105 DECLARE_EXTENSION_FUNCTION("runtime.getPlatformInfo", 105 DECLARE_EXTENSION_FUNCTION("runtime.getPlatformInfo",
106 RUNTIME_GETPLATFORMINFO); 106 RUNTIME_GETPLATFORMINFO);
107 protected: 107 protected:
108 virtual ~RuntimeGetPlatformInfoFunction() {} 108 virtual ~RuntimeGetPlatformInfoFunction() {}
109 virtual bool RunImpl() OVERRIDE; 109 virtual bool RunImpl() OVERRIDE;
110 }; 110 };
111 111
112 class RuntimeGetPackageDirectoryEntryFunction : public SyncExtensionFunction {
113 public:
114 DECLARE_EXTENSION_FUNCTION("runtime.getPackageDirectoryEntry",
115 RUNTIME_GETPACKAGEDIRECTORYENTRY)
116
117 protected:
118 virtual ~RuntimeGetPackageDirectoryEntryFunction() {}
119 virtual bool RunImpl() OVERRIDE;
120 };
121
112 } // namespace extensions 122 } // namespace extensions
113 123
114 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ 124 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/runtime/runtime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698