| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer_host/render_widget_host.h" | 18 #include "content/browser/renderer_host/render_widget_host.h" |
| 19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
| 20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
| 21 #include "content/public/common/window_container_type.h" | 21 #include "content/public/common/window_container_type.h" |
| 22 #include "net/base/load_states.h" | 22 #include "net/base/load_states.h" |
| 23 #if defined(ENABLE_INPUT_COLOR) |
| 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColor.h" |
| 25 #endif |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
| 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 27 #include "webkit/glue/webaccessibility.h" | 30 #include "webkit/glue/webaccessibility.h" |
| 28 #include "webkit/glue/window_open_disposition.h" | 31 #include "webkit/glue/window_open_disposition.h" |
| 29 | 32 |
| 30 class ChildProcessSecurityPolicy; | 33 class ChildProcessSecurityPolicy; |
| 31 struct ContextMenuParams; | 34 struct ContextMenuParams; |
| 32 struct DesktopNotificationHostMsg_Show_Params; | 35 struct DesktopNotificationHostMsg_Show_Params; |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 // The parameter links contain original URLs of all saved links. | 330 // The parameter links contain original URLs of all saved links. |
| 328 // The parameter local_paths contain corresponding local file paths of | 331 // The parameter local_paths contain corresponding local file paths of |
| 329 // all saved links, which matched with vector:links one by one. | 332 // all saved links, which matched with vector:links one by one. |
| 330 // The parameter local_directory_name is relative path of directory which | 333 // The parameter local_directory_name is relative path of directory which |
| 331 // contain all saved auxiliary files included all sub frames and resouces. | 334 // contain all saved auxiliary files included all sub frames and resouces. |
| 332 void GetSerializedHtmlDataForCurrentPageWithLocalLinks( | 335 void GetSerializedHtmlDataForCurrentPageWithLocalLinks( |
| 333 const std::vector<GURL>& links, | 336 const std::vector<GURL>& links, |
| 334 const std::vector<FilePath>& local_paths, | 337 const std::vector<FilePath>& local_paths, |
| 335 const FilePath& local_directory_name); | 338 const FilePath& local_directory_name); |
| 336 | 339 |
| 340 #if defined(ENABLE_INPUT_COLOR) |
| 341 // Notifies the RenderView that the user selected a color in the color |
| 342 // chooser. |
| 343 void DidChooseColorInColorChooser(WebKit::WebColor); |
| 344 void DidCleanupColorChooser(); |
| 345 #endif |
| 346 |
| 337 // Notifies the Listener that one or more files have been chosen by the user | 347 // Notifies the Listener that one or more files have been chosen by the user |
| 338 // from a file chooser dialog for the form. |permissions| are flags from the | 348 // from a file chooser dialog for the form. |permissions| are flags from the |
| 339 // base::PlatformFileFlags enum which specify which file permissions should | 349 // base::PlatformFileFlags enum which specify which file permissions should |
| 340 // be granted to the renderer. | 350 // be granted to the renderer. |
| 341 void FilesSelectedInChooser(const std::vector<FilePath>& files, | 351 void FilesSelectedInChooser(const std::vector<FilePath>& files, |
| 342 int permissions); | 352 int permissions); |
| 343 | 353 |
| 344 // Notifies the listener that a directory enumeration is complete. | 354 // Notifies the listener that a directory enumeration is complete. |
| 345 void DirectoryEnumerationFinished(int request_id, | 355 void DirectoryEnumerationFinished(int request_id, |
| 346 const std::vector<FilePath>& files); | 356 const std::vector<FilePath>& files); |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 685 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
| 676 PowerSaveBlockerMap power_save_blockers_; | 686 PowerSaveBlockerMap power_save_blockers_; |
| 677 | 687 |
| 678 // A list of observers that filter messages. Weak references. | 688 // A list of observers that filter messages. Weak references. |
| 679 ObserverList<RenderViewHostObserver> observers_; | 689 ObserverList<RenderViewHostObserver> observers_; |
| 680 | 690 |
| 681 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 691 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 682 }; | 692 }; |
| 683 | 693 |
| 684 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 694 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |