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

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

Issue 936123002: [Extensions] Implement chrome.runtime.openOptionsPage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: default impl Created 5 years, 10 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/chrome_runtime_api_delegate.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 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 CHROME_BROWSER_EXTENSIONS_API_RUNTIME_CHROME_RUNTIME_API_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_RUNTIME_CHROME_RUNTIME_API_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_CHROME_RUNTIME_API_DELEGATE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_CHROME_RUNTIME_API_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void RemoveUpdateObserver(extensions::UpdateObserver* observer) override; 43 void RemoveUpdateObserver(extensions::UpdateObserver* observer) override;
44 base::Version GetPreviousExtensionVersion( 44 base::Version GetPreviousExtensionVersion(
45 const extensions::Extension* extension) override; 45 const extensions::Extension* extension) override;
46 void ReloadExtension(const std::string& extension_id) override; 46 void ReloadExtension(const std::string& extension_id) override;
47 bool CheckForUpdates(const std::string& extension_id, 47 bool CheckForUpdates(const std::string& extension_id,
48 const UpdateCheckCallback& callback) override; 48 const UpdateCheckCallback& callback) override;
49 void OpenURL(const GURL& uninstall_url) override; 49 void OpenURL(const GURL& uninstall_url) override;
50 bool GetPlatformInfo( 50 bool GetPlatformInfo(
51 extensions::core_api::runtime::PlatformInfo* info) override; 51 extensions::core_api::runtime::PlatformInfo* info) override;
52 bool RestartDevice(std::string* error_message) override; 52 bool RestartDevice(std::string* error_message) override;
53 bool OpenOptionsPage(const extensions::Extension* extension) override;
53 54
54 // content::NotificationObserver implementation. 55 // content::NotificationObserver implementation.
55 void Observe(int type, 56 void Observe(int type,
56 const content::NotificationSource& source, 57 const content::NotificationSource& source,
57 const content::NotificationDetails& details) override; 58 const content::NotificationDetails& details) override;
58 59
59 void UpdateCheckComplete(const std::string& extension_id); 60 void UpdateCheckComplete(const std::string& extension_id);
60 void CallUpdateCallbacks(const std::string& extension_id, 61 void CallUpdateCallbacks(const std::string& extension_id,
61 const UpdateCheckResult& result); 62 const UpdateCheckResult& result);
62 63
(...skipping 13 matching lines...) Expand all
76 // Pending update checks. 77 // Pending update checks.
77 typedef std::vector<UpdateCheckCallback> UpdateCallbackList; 78 typedef std::vector<UpdateCheckCallback> UpdateCallbackList;
78 typedef std::map<std::string, UpdateCallbackList> UpdateCallbackMap; 79 typedef std::map<std::string, UpdateCallbackList> UpdateCallbackMap;
79 UpdateCallbackMap pending_update_checks_; 80 UpdateCallbackMap pending_update_checks_;
80 81
81 private: 82 private:
82 DISALLOW_COPY_AND_ASSIGN(ChromeRuntimeAPIDelegate); 83 DISALLOW_COPY_AND_ASSIGN(ChromeRuntimeAPIDelegate);
83 }; 84 };
84 85
85 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_CHROME_RUNTIME_API_DELEGATE_H_ 86 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_CHROME_RUNTIME_API_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698