| 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_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_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/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/process_util.h" | 14 #include "base/process_util.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "chrome/common/content_settings_types.h" | 16 #include "chrome/common/content_settings_types.h" |
| 17 #include "chrome/common/translate_errors.h" | 17 #include "chrome/common/translate_errors.h" |
| 18 #include "chrome/common/view_types.h" | 18 #include "chrome/common/view_types.h" |
| 19 #include "content/common/dom_storage_common.h" | 19 #include "content/common/dom_storage_common.h" |
| 20 #include "content/common/window_container_type.h" | 20 #include "content/common/window_container_type.h" |
| 21 #include "ipc/ipc_channel.h" | 21 #include "ipc/ipc_channel.h" |
| 22 #include "net/base/load_states.h" | 22 #include "net/base/load_states.h" |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 25 #include "webkit/glue/window_open_disposition.h" | 26 #include "webkit/glue/window_open_disposition.h" |
| 26 | 27 |
| 27 | 28 |
| 28 class AutomationResourceRoutingDelegate; | 29 class AutomationResourceRoutingDelegate; |
| 29 class BackgroundContents; | 30 class BackgroundContents; |
| 30 struct BookmarkNodeData; | 31 struct BookmarkNodeData; |
| 31 class BookmarkNode; | 32 class BookmarkNode; |
| 32 struct ContextMenuParams; | 33 struct ContextMenuParams; |
| 33 class FilePath; | 34 class FilePath; |
| 34 class GURL; | 35 class GURL; |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 const ViewHostMsg_FrameNavigate_Params& params) {} | 430 const ViewHostMsg_FrameNavigate_Params& params) {} |
| 430 | 431 |
| 431 // The state for the page changed and should be updated. | 432 // The state for the page changed and should be updated. |
| 432 virtual void UpdateState(RenderViewHost* render_view_host, | 433 virtual void UpdateState(RenderViewHost* render_view_host, |
| 433 int32 page_id, | 434 int32 page_id, |
| 434 const std::string& state) {} | 435 const std::string& state) {} |
| 435 | 436 |
| 436 // The page's title was changed and should be updated. | 437 // The page's title was changed and should be updated. |
| 437 virtual void UpdateTitle(RenderViewHost* render_view_host, | 438 virtual void UpdateTitle(RenderViewHost* render_view_host, |
| 438 int32 page_id, | 439 int32 page_id, |
| 439 const std::wstring& title) {} | 440 const string16& title, |
| 441 WebKit::WebTextDirection title_direction) {} |
| 440 | 442 |
| 441 // The page's encoding was changed and should be updated. | 443 // The page's encoding was changed and should be updated. |
| 442 virtual void UpdateEncoding(RenderViewHost* render_view_host, | 444 virtual void UpdateEncoding(RenderViewHost* render_view_host, |
| 443 const std::string& encoding) {} | 445 const std::string& encoding) {} |
| 444 | 446 |
| 445 // The destination URL has changed should be updated | 447 // The destination URL has changed should be updated |
| 446 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} | 448 virtual void UpdateTargetURL(int32 page_id, const GURL& url) {} |
| 447 | 449 |
| 448 // Inspector setting was changed and should be persisted. | 450 // Inspector setting was changed and should be persisted. |
| 449 virtual void UpdateInspectorSetting(const std::string& key, | 451 virtual void UpdateInspectorSetting(const std::string& key, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 // Returns true if the delegate will take care of asking the user, otherwise | 573 // Returns true if the delegate will take care of asking the user, otherwise |
| 572 // the caller will do the default behavior. | 574 // the caller will do the default behavior. |
| 573 bool RequestDesktopNotificationPermission(const GURL& source_origin, | 575 bool RequestDesktopNotificationPermission(const GURL& source_origin, |
| 574 int callback_context); | 576 int callback_context); |
| 575 | 577 |
| 576 protected: | 578 protected: |
| 577 virtual ~RenderViewHostDelegate() {} | 579 virtual ~RenderViewHostDelegate() {} |
| 578 }; | 580 }; |
| 579 | 581 |
| 580 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 582 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |