OLD | NEW |
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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "base/process_util.h" | 16 #include "base/process_util.h" |
17 #include "content/browser/renderer_host/render_widget_host_impl.h" | 17 #include "content/browser/renderer_host/render_widget_host_impl.h" |
18 #include "content/browser/site_instance_impl.h" | 18 #include "content/browser/site_instance_impl.h" |
19 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
20 #include "content/public/browser/render_view_host.h" | 20 #include "content/public/browser/render_view_host.h" |
21 #include "content/public/common/window_container_type.h" | 21 #include "content/public/common/window_container_type.h" |
| 22 #include "ppapi/c/pp_instance.h" |
22 #include "net/base/load_states.h" | 23 #include "net/base/load_states.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
26 #include "ui/base/javascript_message_type.h" | 27 #include "ui/base/javascript_message_type.h" |
27 #include "webkit/glue/webaccessibility.h" | 28 #include "webkit/glue/webaccessibility.h" |
28 #include "webkit/glue/window_open_disposition.h" | 29 #include "webkit/glue/window_open_disposition.h" |
29 | 30 |
30 class ChildProcessSecurityPolicyImpl; | 31 class ChildProcessSecurityPolicyImpl; |
31 class PowerSaveBlocker; | 32 class PowerSaveBlocker; |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 void OnShowDesktopNotification( | 535 void OnShowDesktopNotification( |
535 const ShowDesktopNotificationHostMsgParams& params); | 536 const ShowDesktopNotificationHostMsgParams& params); |
536 void OnCancelDesktopNotification(int notification_id); | 537 void OnCancelDesktopNotification(int notification_id); |
537 void OnRunFileChooser(const FileChooserParams& params); | 538 void OnRunFileChooser(const FileChooserParams& params); |
538 void OnDomOperationResponse(const std::string& json_string, | 539 void OnDomOperationResponse(const std::string& json_string, |
539 int automation_id); | 540 int automation_id); |
540 | 541 |
541 #if defined(OS_MACOSX) | 542 #if defined(OS_MACOSX) |
542 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); | 543 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); |
543 #endif | 544 #endif |
| 545 void OnResizeGuest(int width, int height); |
| 546 |
| 547 void OnNavigateGuestFromEmbedder(int container_instance_id, |
| 548 long long frame_id, |
| 549 const std::string& src, |
| 550 const gfx::Size& size); |
544 | 551 |
545 private: | 552 private: |
546 friend class TestRenderViewHost; | 553 friend class TestRenderViewHost; |
547 | 554 |
548 // Sets whether this RenderViewHost is swapped out in favor of another, | 555 // Sets whether this RenderViewHost is swapped out in favor of another, |
549 // and clears any waiting state that is no longer relevant. | 556 // and clears any waiting state that is no longer relevant. |
550 void SetSwappedOut(bool is_swapped_out); | 557 void SetSwappedOut(bool is_swapped_out); |
551 | 558 |
552 void ClearPowerSaveBlockers(); | 559 void ClearPowerSaveBlockers(); |
553 | 560 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 655 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
649 }; | 656 }; |
650 | 657 |
651 #if defined(COMPILER_MSVC) | 658 #if defined(COMPILER_MSVC) |
652 #pragma warning(pop) | 659 #pragma warning(pop) |
653 #endif | 660 #endif |
654 | 661 |
655 } // namespace content | 662 } // namespace content |
656 | 663 |
657 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 664 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |