| 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_GUEST_VIEW_BASE_H_ | 5 #ifndef COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ | 6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "components/guest_view/common/guest_view_constants.h" |
| 12 #include "components/ui/zoom/zoom_observer.h" | 13 #include "components/ui/zoom/zoom_observer.h" |
| 13 #include "content/public/browser/browser_plugin_guest_delegate.h" | 14 #include "content/public/browser/browser_plugin_guest_delegate.h" |
| 14 #include "content/public/browser/guest_host.h" | 15 #include "content/public/browser/guest_host.h" |
| 15 #include "content/public/browser/render_process_host_observer.h" | 16 #include "content/public/browser/render_process_host_observer.h" |
| 16 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
| 17 #include "content/public/browser/web_contents_delegate.h" | 18 #include "content/public/browser/web_contents_delegate.h" |
| 18 #include "content/public/browser/web_contents_observer.h" | 19 #include "content/public/browser/web_contents_observer.h" |
| 19 #include "extensions/common/guest_view/guest_view_constants.h" | |
| 20 | 20 |
| 21 struct RendererContentSettingRules; | 21 struct RendererContentSettingRules; |
| 22 | 22 |
| 23 namespace extensions { | 23 namespace guestview { |
| 24 | 24 |
| 25 class GuestViewEvent; | 25 class GuestViewEvent; |
| 26 | 26 |
| 27 // A struct of parameters for SetSize(). The parameters are all declared as | 27 // A struct of parameters for SetSize(). The parameters are all declared as |
| 28 // scoped pointers since they are all optional. Null pointers indicate that the | 28 // scoped pointers since they are all optional. Null pointers indicate that the |
| 29 // parameter has not been provided, and the last used value should be used. Note | 29 // parameter has not been provided, and the last used value should be used. Note |
| 30 // that when |enable_auto_size| is true, providing |normal_size| is not | 30 // that when |enable_auto_size| is true, providing |normal_size| is not |
| 31 // meaningful. This is because the normal size of the guestview is overridden | 31 // meaningful. This is because the normal size of the guestview is overridden |
| 32 // whenever autosizing occurs. | 32 // whenever autosizing occurs. |
| 33 struct SetSizeParams { | 33 struct SetSizeParams { |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 // The routing ID of the proxy to the guest in the owner's renderer process. | 445 // The routing ID of the proxy to the guest in the owner's renderer process. |
| 446 int guest_proxy_routing_id_; | 446 int guest_proxy_routing_id_; |
| 447 | 447 |
| 448 // This is used to ensure pending tasks will not fire after this object is | 448 // This is used to ensure pending tasks will not fire after this object is |
| 449 // destroyed. | 449 // destroyed. |
| 450 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; | 450 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; |
| 451 | 451 |
| 452 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); | 452 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); |
| 453 }; | 453 }; |
| 454 | 454 |
| 455 } // namespace extensions | 455 } // namespace guestview |
| 456 | 456 |
| 457 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ | 457 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
| OLD | NEW |