Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 8669014: Fix a bug where redirect chain gets lost on process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: conditional disabling Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/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/view_type.h" 17 #include "content/public/common/view_type.h"
18 #include "ipc/ipc_channel.h" 18 #include "ipc/ipc_channel.h"
19 #include "net/base/load_states.h" 19 #include "net/base/load_states.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
22 #include "webkit/glue/window_open_disposition.h" 22 #include "webkit/glue/window_open_disposition.h"
23 23
24 class GURL; 24 class GURL;
25 class RenderViewHost; 25 class RenderViewHost;
26 class SkBitmap; 26 class SkBitmap;
27 class TabContents; 27 class TabContents;
28 class WebKeyboardEvent; 28 class WebKeyboardEvent;
29 struct ContextMenuParams; 29 struct ContextMenuParams;
30 struct GlobalRequestID;
30 struct NativeWebKeyboardEvent; 31 struct NativeWebKeyboardEvent;
31 struct ViewHostMsg_CreateWindow_Params; 32 struct ViewHostMsg_CreateWindow_Params;
32 struct ViewHostMsg_FrameNavigate_Params; 33 struct ViewHostMsg_FrameNavigate_Params;
33 struct WebDropData; 34 struct WebDropData;
34 struct WebMenuItem; 35 struct WebMenuItem;
35 struct WebPreferences; 36 struct WebPreferences;
36 37
37 namespace base { 38 namespace base {
38 class ListValue; 39 class ListValue;
39 } 40 }
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 virtual void DocumentOnLoadCompletedInMainFrame( 270 virtual void DocumentOnLoadCompletedInMainFrame(
270 RenderViewHost* render_view_host, 271 RenderViewHost* render_view_host,
271 int32 page_id) {} 272 int32 page_id) {}
272 273
273 // The page wants to open a URL with the specified disposition. 274 // The page wants to open a URL with the specified disposition.
274 virtual void RequestOpenURL(const GURL& url, 275 virtual void RequestOpenURL(const GURL& url,
275 const GURL& referrer, 276 const GURL& referrer,
276 WindowOpenDisposition disposition, 277 WindowOpenDisposition disposition,
277 int64 source_frame_id) {} 278 int64 source_frame_id) {}
278 279
280 // The page wants to transfer the request to a new renderer.
281 virtual void RequestTransferURL(const GURL& url,
282 const GURL& referrer,
283 WindowOpenDisposition disposition,
284 int64 source_frame_id,
285 const GlobalRequestID& old_request_id) {}
286
279 // A javascript message, confirmation or prompt should be shown. 287 // A javascript message, confirmation or prompt should be shown.
280 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, 288 virtual void RunJavaScriptMessage(const RenderViewHost* rvh,
281 const string16& message, 289 const string16& message,
282 const string16& default_prompt, 290 const string16& default_prompt,
283 const GURL& frame_url, 291 const GURL& frame_url,
284 const int flags, 292 const int flags,
285 IPC::Message* reply_msg, 293 IPC::Message* reply_msg,
286 bool* did_suppress_message) {} 294 bool* did_suppress_message) {}
287 295
288 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, 296 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 virtual void RequestToLockMouse() {} 388 virtual void RequestToLockMouse() {}
381 389
382 // Notification that the view has lost the mouse lock. 390 // Notification that the view has lost the mouse lock.
383 virtual void LostMouseLock() {} 391 virtual void LostMouseLock() {}
384 392
385 protected: 393 protected:
386 virtual ~RenderViewHostDelegate() {} 394 virtual ~RenderViewHostDelegate() {}
387 }; 395 };
388 396
389 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 397 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/global_request_id.h ('k') | content/browser/renderer_host/resource_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698