| OLD | NEW |
| 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_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 bool HandleKeyboardShortcuts(const content::NativeWebKeyboardEvent& event); | 346 bool HandleKeyboardShortcuts(const content::NativeWebKeyboardEvent& event); |
| 347 | 347 |
| 348 void ApplyAttributes(const base::DictionaryValue& params); | 348 void ApplyAttributes(const base::DictionaryValue& params); |
| 349 | 349 |
| 350 // Identifies the set of rules registries belonging to this guest. | 350 // Identifies the set of rules registries belonging to this guest. |
| 351 int rules_registry_id_; | 351 int rules_registry_id_; |
| 352 | 352 |
| 353 // Handles find requests and replies for the webview find API. | 353 // Handles find requests and replies for the webview find API. |
| 354 WebViewFindHelper find_helper_; | 354 WebViewFindHelper find_helper_; |
| 355 | 355 |
| 356 ObserverList<ScriptExecutionObserver> script_observers_; | 356 base::ObserverList<ScriptExecutionObserver> script_observers_; |
| 357 scoped_ptr<ScriptExecutor> script_executor_; | 357 scoped_ptr<ScriptExecutor> script_executor_; |
| 358 | 358 |
| 359 content::NotificationRegistrar notification_registrar_; | 359 content::NotificationRegistrar notification_registrar_; |
| 360 | 360 |
| 361 // True if the user agent is overridden. | 361 // True if the user agent is overridden. |
| 362 bool is_overriding_user_agent_; | 362 bool is_overriding_user_agent_; |
| 363 | 363 |
| 364 // Stores the window name of the main frame of the guest. | 364 // Stores the window name of the main frame of the guest. |
| 365 std::string name_; | 365 std::string name_; |
| 366 | 366 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 // This is used to ensure pending tasks will not fire after this object is | 406 // This is used to ensure pending tasks will not fire after this object is |
| 407 // destroyed. | 407 // destroyed. |
| 408 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 408 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
| 409 | 409 |
| 410 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 410 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 411 }; | 411 }; |
| 412 | 412 |
| 413 } // namespace extensions | 413 } // namespace extensions |
| 414 | 414 |
| 415 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 415 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |