| 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 COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ | 5 #ifndef COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
| 6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ | 6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "components/guest_view/common/guest_view_constants.h" | 14 #include "components/guest_view/common/guest_view_constants.h" |
| 15 #include "components/zoom/zoom_observer.h" | 15 #include "components/zoom/zoom_observer.h" |
| 16 #include "content/public/browser/browser_plugin_guest_delegate.h" | 16 #include "content/public/browser/browser_plugin_guest_delegate.h" |
| 17 #include "content/public/browser/guest_host.h" | 17 #include "content/public/browser/guest_host.h" |
| 18 #include "content/public/browser/render_process_host_observer.h" | 18 #include "content/public/browser/render_process_host_observer.h" |
| 19 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
| 20 #include "content/public/browser/web_contents_delegate.h" | 20 #include "content/public/browser/web_contents_delegate.h" |
| 21 #include "content/public/browser/web_contents_observer.h" | 21 #include "content/public/browser/web_contents_observer.h" |
| 22 | 22 |
| 23 struct RendererContentSettingRules; | |
| 24 | |
| 25 namespace guest_view { | 23 namespace guest_view { |
| 26 | 24 |
| 27 class GuestViewEvent; | 25 class GuestViewEvent; |
| 28 | 26 |
| 29 // 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 |
| 30 // 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 |
| 31 // 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 |
| 32 // 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 |
| 33 // 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 |
| 34 // whenever autosizing occurs. | 32 // whenever autosizing occurs. |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 // This is used to ensure pending tasks will not fire after this object is | 487 // This is used to ensure pending tasks will not fire after this object is |
| 490 // destroyed. | 488 // destroyed. |
| 491 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; | 489 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; |
| 492 | 490 |
| 493 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); | 491 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); |
| 494 }; | 492 }; |
| 495 | 493 |
| 496 } // namespace guest_view | 494 } // namespace guest_view |
| 497 | 495 |
| 498 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ | 496 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
| OLD | NEW |