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

Side by Side Diff: extensions/browser/api/runtime/runtime_api_delegate.h

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_DELEGATE_H 5 #ifndef EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_DELEGATE_H
6 #define EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_DELEGATE_H 6 #define EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_DELEGATE_H
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/version.h" 9 #include "base/version.h"
10 10
11 class GURL; 11 class GURL;
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 namespace core_api { 15 namespace api {
16 namespace runtime { 16 namespace runtime {
17 struct PlatformInfo; 17 struct PlatformInfo;
18 } 18 }
19 } 19 }
20 20
21 class Extension; 21 class Extension;
22 class UpdateObserver; 22 class UpdateObserver;
23 23
24 // This is a delegate interface for chrome.runtime API behavior. Clients must 24 // This is a delegate interface for chrome.runtime API behavior. Clients must
25 // vend some implementation of this interface through 25 // vend some implementation of this interface through
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // are disabled. Otherwise |callback| is called with the result of the 58 // are disabled. Otherwise |callback| is called with the result of the
59 // update check. 59 // update check.
60 virtual bool CheckForUpdates(const std::string& extension_id, 60 virtual bool CheckForUpdates(const std::string& extension_id,
61 const UpdateCheckCallback& callback) = 0; 61 const UpdateCheckCallback& callback) = 0;
62 62
63 // Navigates the browser to a URL on behalf of the runtime API. 63 // Navigates the browser to a URL on behalf of the runtime API.
64 virtual void OpenURL(const GURL& uninstall_url) = 0; 64 virtual void OpenURL(const GURL& uninstall_url) = 0;
65 65
66 // Populates platform info to be provided by the getPlatformInfo function. 66 // Populates platform info to be provided by the getPlatformInfo function.
67 // Returns false iff no info is provided. 67 // Returns false iff no info is provided.
68 virtual bool GetPlatformInfo(core_api::runtime::PlatformInfo* info) = 0; 68 virtual bool GetPlatformInfo(api::runtime::PlatformInfo* info) = 0;
69 69
70 // Request a restart of the host device. Returns false iff the device 70 // Request a restart of the host device. Returns false iff the device
71 // will not be restarted. 71 // will not be restarted.
72 virtual bool RestartDevice(std::string* error_message) = 0; 72 virtual bool RestartDevice(std::string* error_message) = 0;
73 73
74 // Open |extension|'s options page, if it has one. Returns true if an 74 // Open |extension|'s options page, if it has one. Returns true if an
75 // options page was opened, false otherwise. See the docs of the 75 // options page was opened, false otherwise. See the docs of the
76 // chrome.runtime.openOptionsPage function for the gritty details. 76 // chrome.runtime.openOptionsPage function for the gritty details.
77 virtual bool OpenOptionsPage(const Extension* extension); 77 virtual bool OpenOptionsPage(const Extension* extension);
78 }; 78 };
79 79
80 } // namespace extensions 80 } // namespace extensions
81 81
82 #endif // EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_DELEGATE_H 82 #endif // EXTENSIONS_BROWSER_API_RUNTIME_RUNTIME_API_DELEGATE_H
OLDNEW
« no previous file with comments | « extensions/browser/api/runtime/runtime_api.cc ('k') | extensions/browser/api/serial/serial_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698