| 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_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_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/i18n/rtl.h" | 13 #include "base/i18n/rtl.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 "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "content/public/common/page_transition_types.h" |
| 17 #include "content/public/common/view_type.h" | 18 #include "content/public/common/view_type.h" |
| 18 #include "ipc/ipc_channel.h" | 19 #include "ipc/ipc_channel.h" |
| 19 #include "net/base/load_states.h" | 20 #include "net/base/load_states.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 22 #include "ui/base/javascript_message_type.h" | 23 #include "ui/base/javascript_message_type.h" |
| 23 #include "webkit/glue/window_open_disposition.h" | 24 #include "webkit/glue/window_open_disposition.h" |
| 24 | 25 |
| 25 class GURL; | 26 class GURL; |
| 26 class SkBitmap; | 27 class SkBitmap; |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 int64 source_frame_id) {} | 291 int64 source_frame_id) {} |
| 291 | 292 |
| 292 // The page wants to transfer the request to a new renderer. | 293 // The page wants to transfer the request to a new renderer. |
| 293 virtual void RequestTransferURL( | 294 virtual void RequestTransferURL( |
| 294 const GURL& url, | 295 const GURL& url, |
| 295 const content::Referrer& referrer, | 296 const content::Referrer& referrer, |
| 296 WindowOpenDisposition disposition, | 297 WindowOpenDisposition disposition, |
| 297 int64 source_frame_id, | 298 int64 source_frame_id, |
| 298 const content::GlobalRequestID& old_request_id) {} | 299 const content::GlobalRequestID& old_request_id) {} |
| 299 | 300 |
| 301 // The page is asking the browser to decide if the navigation should be |
| 302 // ignored (only happens if the appropriate renderer pref is set). |
| 303 virtual bool ShouldIgnoreNavigation(const GURL& url, |
| 304 const content::Referrer& referrer, |
| 305 WindowOpenDisposition disposition, |
| 306 int64 source_frame_id, |
| 307 bool is_content_initiated); |
| 308 |
| 300 // A javascript message, confirmation or prompt should be shown. | 309 // A javascript message, confirmation or prompt should be shown. |
| 301 virtual void RunJavaScriptMessage(RenderViewHost* rvh, | 310 virtual void RunJavaScriptMessage(RenderViewHost* rvh, |
| 302 const string16& message, | 311 const string16& message, |
| 303 const string16& default_prompt, | 312 const string16& default_prompt, |
| 304 const GURL& frame_url, | 313 const GURL& frame_url, |
| 305 ui::JavascriptMessageType type, | 314 ui::JavascriptMessageType type, |
| 306 IPC::Message* reply_msg, | 315 IPC::Message* reply_msg, |
| 307 bool* did_suppress_message) {} | 316 bool* did_suppress_message) {} |
| 308 | 317 |
| 309 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, | 318 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 // Notification that the view has lost the mouse lock. | 416 // Notification that the view has lost the mouse lock. |
| 408 virtual void LostMouseLock() {} | 417 virtual void LostMouseLock() {} |
| 409 | 418 |
| 410 protected: | 419 protected: |
| 411 virtual ~RenderViewHostDelegate() {} | 420 virtual ~RenderViewHostDelegate() {} |
| 412 }; | 421 }; |
| 413 | 422 |
| 414 } // namespace content | 423 } // namespace content |
| 415 | 424 |
| 416 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 425 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |