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

Side by Side Diff: chrome/browser/extensions/extension_function_dispatcher.h

Issue 9234042: Re-land alexbost's experimental offscreenTabs API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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 (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_EXTENSION_FUNCTION_DISPATCHER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // are all passed into each request. 48 // are all passed into each request.
49 class ExtensionFunctionDispatcher 49 class ExtensionFunctionDispatcher
50 : public base::SupportsWeakPtr<ExtensionFunctionDispatcher> { 50 : public base::SupportsWeakPtr<ExtensionFunctionDispatcher> {
51 public: 51 public:
52 class Delegate { 52 class Delegate {
53 public: 53 public:
54 // Returns the browser that this delegate is associated with, if any. 54 // Returns the browser that this delegate is associated with, if any.
55 // Returns NULL otherwise. 55 // Returns NULL otherwise.
56 virtual Browser* GetBrowser() = 0; 56 virtual Browser* GetBrowser() = 0;
57 57
58 // Asks the delegate for any relevant WebbContents associated with this 58 // Asks the delegate for any relevant WebContents associated with this
59 // context. For example, the WebbContents in which an infobar or 59 // context. For example, the WebbContents in which an infobar or
60 // chrome-extension://<id> URL are being shown. Callers must check for a 60 // chrome-extension://<id> URL are being shown. Callers must check for a
61 // NULL return value (as in the case of a background page). 61 // NULL return value (as in the case of a background page).
62 virtual content::WebContents* GetAssociatedWebContents() const = 0; 62 virtual content::WebContents* GetAssociatedWebContents() const = 0;
63 63
64 protected: 64 protected:
65 virtual ~Delegate() {} 65 virtual ~Delegate() {}
66 }; 66 };
67 67
68 // Gets a list of all known extension function names. 68 // Gets a list of all known extension function names.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 static void SendAccessDenied(IPC::Message::Sender* ipc_sender, 134 static void SendAccessDenied(IPC::Message::Sender* ipc_sender,
135 int routing_id, 135 int routing_id,
136 int request_id); 136 int request_id);
137 137
138 Profile* profile_; 138 Profile* profile_;
139 139
140 Delegate* delegate_; 140 Delegate* delegate_;
141 }; 141 };
142 142
143 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ 143 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_event_names.cc ('k') | chrome/browser/extensions/extension_function_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698