| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // The name of this function. | 142 // The name of this function. |
| 143 std::string name_; | 143 std::string name_; |
| 144 | 144 |
| 145 // The URL of the frame which is making this request | 145 // The URL of the frame which is making this request |
| 146 GURL source_url_; | 146 GURL source_url_; |
| 147 | 147 |
| 148 // True if the js caller provides a callback function to receive the response | 148 // True if the js caller provides a callback function to receive the response |
| 149 // of this call. | 149 // of this call. |
| 150 bool has_callback_; | 150 bool has_callback_; |
| 151 | 151 |
| 152 // True if this callback should include information from incognito contexts. | 152 // True if this callback should include information from incognito contexts |
| 153 // even if our profile_ is non-incognito. Note that in the case of a "split" |
| 154 // mode extension, this will always be false, and we will limit access to |
| 155 // data from within the same profile_ (either incognito or not). |
| 153 bool include_incognito_; | 156 bool include_incognito_; |
| 154 | 157 |
| 155 // True if the call was made in response of user gesture. | 158 // True if the call was made in response of user gesture. |
| 156 bool user_gesture_; | 159 bool user_gesture_; |
| 157 | 160 |
| 158 DISALLOW_COPY_AND_ASSIGN(ExtensionFunction); | 161 DISALLOW_COPY_AND_ASSIGN(ExtensionFunction); |
| 159 }; | 162 }; |
| 160 | 163 |
| 161 // Base class for an extension function that runs asynchronously *relative to | 164 // Base class for an extension function that runs asynchronously *relative to |
| 162 // the browser's UI thread*. | 165 // the browser's UI thread*. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 virtual void Run(); | 225 virtual void Run(); |
| 223 | 226 |
| 224 protected: | 227 protected: |
| 225 virtual ~SyncExtensionFunction(); | 228 virtual ~SyncExtensionFunction(); |
| 226 | 229 |
| 227 private: | 230 private: |
| 228 DISALLOW_COPY_AND_ASSIGN(SyncExtensionFunction); | 231 DISALLOW_COPY_AND_ASSIGN(SyncExtensionFunction); |
| 229 }; | 232 }; |
| 230 | 233 |
| 231 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_H_ | 234 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_H_ |
| OLD | NEW |