OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
11 #include <queue> | 11 #include <queue> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "app/surface/transport_dib.h" | 16 #include "app/surface/transport_dib.h" |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
19 #include "base/id_map.h" | |
20 #include "base/linked_ptr.h" | 19 #include "base/linked_ptr.h" |
21 #include "base/timer.h" | 20 #include "base/timer.h" |
22 #include "base/weak_ptr.h" | 21 #include "base/weak_ptr.h" |
23 #include "build/build_config.h" | 22 #include "build/build_config.h" |
24 #include "chrome/common/content_settings.h" | 23 #include "chrome/common/content_settings.h" |
25 #include "chrome/common/edit_command.h" | 24 #include "chrome/common/edit_command.h" |
26 #include "chrome/common/navigation_gesture.h" | 25 #include "chrome/common/navigation_gesture.h" |
27 #include "chrome/common/page_zoom.h" | 26 #include "chrome/common/page_zoom.h" |
28 #include "chrome/common/render_messages.h" | 27 #include "chrome/common/render_messages.h" |
29 #include "chrome/common/renderer_preferences.h" | 28 #include "chrome/common/renderer_preferences.h" |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 const std::string& target); | 815 const std::string& target); |
817 void OnInstallMissingPlugin(); | 816 void OnInstallMissingPlugin(); |
818 void OnLoadBlockedPlugins(); | 817 void OnLoadBlockedPlugins(); |
819 void OnMediaPlayerActionAt(const gfx::Point& location, | 818 void OnMediaPlayerActionAt(const gfx::Point& location, |
820 const WebKit::WebMediaPlayerAction& action); | 819 const WebKit::WebMediaPlayerAction& action); |
821 void OnMoveOrResizeStarted(); | 820 void OnMoveOrResizeStarted(); |
822 void OnNavigate(const ViewMsg_Navigate_Params& params); | 821 void OnNavigate(const ViewMsg_Navigate_Params& params); |
823 void OnNotifyRendererViewType(ViewType::Type view_type); | 822 void OnNotifyRendererViewType(ViewType::Type view_type); |
824 void OnFillPasswordForm( | 823 void OnFillPasswordForm( |
825 const webkit_glue::PasswordFormFillData& form_data); | 824 const webkit_glue::PasswordFormFillData& form_data); |
826 void OnOpenFileSystemRequestComplete(int request_id, | |
827 bool accepted, | |
828 const string16& name, | |
829 const string16& root_path); | |
830 void OnPaste(); | 825 void OnPaste(); |
831 void OnPrintingDone(int document_cookie, bool success); | 826 void OnPrintingDone(int document_cookie, bool success); |
832 void OnPrintPages(); | 827 void OnPrintPages(); |
833 void OnRedo(); | 828 void OnRedo(); |
834 void OnReloadFrame(); | 829 void OnReloadFrame(); |
835 void OnReplace(const string16& text); | 830 void OnReplace(const string16& text); |
836 void OnReservePageIDRange(int size_of_range); | 831 void OnReservePageIDRange(int size_of_range); |
837 void OnResetPageEncodingToDefault(); | 832 void OnResetPageEncodingToDefault(); |
838 void OnRevertTranslation(int page_id); | 833 void OnRevertTranslation(int page_id); |
839 void OnScriptEvalRequest(const std::wstring& frame_xpath, | 834 void OnScriptEvalRequest(const std::wstring& frame_xpath, |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 // DOM automation bindings are enabled. | 1337 // DOM automation bindings are enabled. |
1343 scoped_ptr<DomAutomationController> dom_automation_controller_; | 1338 scoped_ptr<DomAutomationController> dom_automation_controller_; |
1344 | 1339 |
1345 // Allows DOM UI pages (new tab page, etc.) to talk to the browser. The JS | 1340 // Allows DOM UI pages (new tab page, etc.) to talk to the browser. The JS |
1346 // object is only exposed when DOM UI bindings are enabled. | 1341 // object is only exposed when DOM UI bindings are enabled. |
1347 scoped_ptr<DOMUIBindings> dom_ui_bindings_; | 1342 scoped_ptr<DOMUIBindings> dom_ui_bindings_; |
1348 | 1343 |
1349 // External host exposed through automation controller. | 1344 // External host exposed through automation controller. |
1350 scoped_ptr<ExternalHostBindings> external_host_bindings_; | 1345 scoped_ptr<ExternalHostBindings> external_host_bindings_; |
1351 | 1346 |
1352 // Pending openFileSystem completion objects. | |
1353 struct PendingOpenFileSystem; | |
1354 IDMap<PendingOpenFileSystem, IDMapOwnPointer> | |
1355 pending_file_system_requests_; | |
1356 | |
1357 // --------------------------------------------------------------------------- | 1347 // --------------------------------------------------------------------------- |
1358 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1348 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1359 // sections rather than throwing it randomly at the end. If you're adding a | 1349 // sections rather than throwing it randomly at the end. If you're adding a |
1360 // bunch of stuff, you should probably create a helper class and put your | 1350 // bunch of stuff, you should probably create a helper class and put your |
1361 // data and methods on that to avoid bloating RenderView more. | 1351 // data and methods on that to avoid bloating RenderView more. |
1362 // --------------------------------------------------------------------------- | 1352 // --------------------------------------------------------------------------- |
1363 | 1353 |
1364 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1354 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1365 }; | 1355 }; |
1366 | 1356 |
1367 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1357 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |