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> |
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 "base/values.h" | 17 #include "base/values.h" |
18 #include "content/browser/in_process_webkit/session_storage_namespace_impl.h" | 18 #include "content/browser/in_process_webkit/session_storage_namespace_impl.h" |
19 #include "content/browser/renderer_host/render_widget_host.h" | 19 #include "content/browser/renderer_host/render_widget_host.h" |
20 #include "content/browser/site_instance_impl.h" | 20 #include "content/browser/site_instance_impl.h" |
21 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
22 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
23 #include "content/public/common/stop_find_action.h" | 23 #include "content/public/common/stop_find_action.h" |
24 #include "content/public/common/window_container_type.h" | 24 #include "content/public/common/window_container_type.h" |
25 #include "net/base/load_states.h" | 25 #include "net/base/load_states.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
30 #include "third_party/skia/include/core/SkColor.h" | |
30 #include "ui/base/javascript_message_type.h" | 31 #include "ui/base/javascript_message_type.h" |
31 #include "webkit/glue/webaccessibility.h" | 32 #include "webkit/glue/webaccessibility.h" |
32 #include "webkit/glue/window_open_disposition.h" | 33 #include "webkit/glue/window_open_disposition.h" |
33 | 34 |
34 class ChildProcessSecurityPolicyImpl; | 35 class ChildProcessSecurityPolicyImpl; |
35 class FilePath; | 36 class FilePath; |
36 class GURL; | 37 class GURL; |
37 class PowerSaveBlocker; | 38 class PowerSaveBlocker; |
38 class SessionStorageNamespaceImpl; | 39 class SessionStorageNamespaceImpl; |
39 class SkBitmap; | 40 class SkBitmap; |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
334 // The parameter links contain original URLs of all saved links. | 335 // The parameter links contain original URLs of all saved links. |
335 // The parameter local_paths contain corresponding local file paths of | 336 // The parameter local_paths contain corresponding local file paths of |
336 // all saved links, which matched with vector:links one by one. | 337 // all saved links, which matched with vector:links one by one. |
337 // The parameter local_directory_name is relative path of directory which | 338 // The parameter local_directory_name is relative path of directory which |
338 // contain all saved auxiliary files included all sub frames and resouces. | 339 // contain all saved auxiliary files included all sub frames and resouces. |
339 void GetSerializedHtmlDataForCurrentPageWithLocalLinks( | 340 void GetSerializedHtmlDataForCurrentPageWithLocalLinks( |
340 const std::vector<GURL>& links, | 341 const std::vector<GURL>& links, |
341 const std::vector<FilePath>& local_paths, | 342 const std::vector<FilePath>& local_paths, |
342 const FilePath& local_directory_name); | 343 const FilePath& local_directory_name); |
343 | 344 |
345 // Notifies the RenderView that the user selected a color in the color | |
346 // chooser. | |
347 void DidChooseColorInColorChooser(int color_chooser_id, const SkColor&); | |
jam
2012/02/27 22:06:25
it seems asymmetrical that the embedder's WebConte
| |
348 void DidEndColorChooser(int color_chooser_id); | |
349 | |
344 // Notifies the Listener that one or more files have been chosen by the user | 350 // Notifies the Listener that one or more files have been chosen by the user |
345 // from a file chooser dialog for the form. |permissions| are flags from the | 351 // from a file chooser dialog for the form. |permissions| are flags from the |
346 // base::PlatformFileFlags enum which specify which file permissions should | 352 // base::PlatformFileFlags enum which specify which file permissions should |
347 // be granted to the renderer. | 353 // be granted to the renderer. |
348 void FilesSelectedInChooser(const std::vector<FilePath>& files, | 354 void FilesSelectedInChooser(const std::vector<FilePath>& files, |
349 int permissions); | 355 int permissions); |
350 | 356 |
351 // Notifies the listener that a directory enumeration is complete. | 357 // Notifies the listener that a directory enumeration is complete. |
352 void DirectoryEnumerationFinished(int request_id, | 358 void DirectoryEnumerationFinished(int request_id, |
353 const std::vector<FilePath>& files); | 359 const std::vector<FilePath>& files); |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
707 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 713 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
708 PowerSaveBlockerMap power_save_blockers_; | 714 PowerSaveBlockerMap power_save_blockers_; |
709 | 715 |
710 // A list of observers that filter messages. Weak references. | 716 // A list of observers that filter messages. Weak references. |
711 ObserverList<content::RenderViewHostObserver> observers_; | 717 ObserverList<content::RenderViewHostObserver> observers_; |
712 | 718 |
713 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 719 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
714 }; | 720 }; |
715 | 721 |
716 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 722 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |