| 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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "content/public/common/window_container_type.h" | 23 #include "content/public/common/window_container_type.h" |
| 24 #include "net/base/load_states.h" | 24 #include "net/base/load_states.h" |
| 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
| 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 29 #include "ui/base/javascript_message_type.h" | 29 #include "ui/base/javascript_message_type.h" |
| 30 #include "webkit/glue/webaccessibility.h" | 30 #include "webkit/glue/webaccessibility.h" |
| 31 #include "webkit/glue/window_open_disposition.h" | 31 #include "webkit/glue/window_open_disposition.h" |
| 32 | 32 |
| 33 class ChildProcessSecurityPolicy; | 33 class ChildProcessSecurityPolicyImpl; |
| 34 class FilePath; | 34 class FilePath; |
| 35 class GURL; | 35 class GURL; |
| 36 class PowerSaveBlocker; | 36 class PowerSaveBlocker; |
| 37 class SessionStorageNamespace; | 37 class SessionStorageNamespace; |
| 38 class SkBitmap; | 38 class SkBitmap; |
| 39 class ViewMsg_Navigate; | 39 class ViewMsg_Navigate; |
| 40 struct ContextMenuParams; | 40 struct ContextMenuParams; |
| 41 struct MediaPlayerAction; | 41 struct MediaPlayerAction; |
| 42 struct ViewHostMsg_AccessibilityNotification_Params; | 42 struct ViewHostMsg_AccessibilityNotification_Params; |
| 43 struct ViewHostMsg_CreateWindow_Params; | 43 struct ViewHostMsg_CreateWindow_Params; |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 const webkit_glue::WebAccessibility& accessibility_tree_for_testing() { | 400 const webkit_glue::WebAccessibility& accessibility_tree_for_testing() { |
| 401 return accessibility_tree_; | 401 return accessibility_tree_; |
| 402 } | 402 } |
| 403 | 403 |
| 404 bool is_waiting_for_unload_ack_for_testing() { | 404 bool is_waiting_for_unload_ack_for_testing() { |
| 405 return is_waiting_for_unload_ack_; | 405 return is_waiting_for_unload_ack_; |
| 406 } | 406 } |
| 407 | 407 |
| 408 // Checks that the given renderer can request |url|, if not it sets it to an | 408 // Checks that the given renderer can request |url|, if not it sets it to an |
| 409 // empty url. | 409 // empty url. |
| 410 static void FilterURL(ChildProcessSecurityPolicy* policy, | 410 static void FilterURL(ChildProcessSecurityPolicyImpl* policy, |
| 411 int renderer_id, | 411 int renderer_id, |
| 412 GURL* url); | 412 GURL* url); |
| 413 | 413 |
| 414 // Sets the alternate error page URL (link doctor) for the renderer process. | 414 // Sets the alternate error page URL (link doctor) for the renderer process. |
| 415 void SetAltErrorPageURL(const GURL& url); | 415 void SetAltErrorPageURL(const GURL& url); |
| 416 | 416 |
| 417 // Asks the renderer to exit fullscreen | 417 // Asks the renderer to exit fullscreen |
| 418 void ExitFullscreen(); | 418 void ExitFullscreen(); |
| 419 | 419 |
| 420 // Passes a list of Webkit preferences to the renderer. | 420 // Passes a list of Webkit preferences to the renderer. |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 692 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
| 693 PowerSaveBlockerMap power_save_blockers_; | 693 PowerSaveBlockerMap power_save_blockers_; |
| 694 | 694 |
| 695 // A list of observers that filter messages. Weak references. | 695 // A list of observers that filter messages. Weak references. |
| 696 ObserverList<content::RenderViewHostObserver> observers_; | 696 ObserverList<content::RenderViewHostObserver> observers_; |
| 697 | 697 |
| 698 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 698 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 699 }; | 699 }; |
| 700 | 700 |
| 701 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 701 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |