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

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

Issue 10310124: Implement a ResourceThrottle for URL overriding in Chrome on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: incorporated feedback Created 8 years, 7 months 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
OLDNEW
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>
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 virtual void RequestTransferURL( 323 virtual void RequestTransferURL(
324 const GURL& url, 324 const GURL& url,
325 const content::Referrer& referrer, 325 const content::Referrer& referrer,
326 WindowOpenDisposition disposition, 326 WindowOpenDisposition disposition,
327 int64 source_frame_id, 327 int64 source_frame_id,
328 const content::GlobalRequestID& old_request_id) {} 328 const content::GlobalRequestID& old_request_id) {}
329 329
330 // The page wants to close the active view in this tab. 330 // The page wants to close the active view in this tab.
331 virtual void RouteCloseEvent(RenderViewHost* rvh) {} 331 virtual void RouteCloseEvent(RenderViewHost* rvh) {}
332 332
333 // The page is asking whether to ignore the navigation.
334 virtual bool ShouldIgnoreNavigation(
335 RenderViewHost* rvh,
336 const GURL& url,
337 const content::Referrer& referrer,
338 bool is_content_initiated);
339
333 // A javascript message, confirmation or prompt should be shown. 340 // A javascript message, confirmation or prompt should be shown.
334 virtual void RunJavaScriptMessage(RenderViewHost* rvh, 341 virtual void RunJavaScriptMessage(RenderViewHost* rvh,
335 const string16& message, 342 const string16& message,
336 const string16& default_prompt, 343 const string16& default_prompt,
337 const GURL& frame_url, 344 const GURL& frame_url,
338 ui::JavascriptMessageType type, 345 ui::JavascriptMessageType type,
339 IPC::Message* reply_msg, 346 IPC::Message* reply_msg,
340 bool* did_suppress_message) {} 347 bool* did_suppress_message) {}
341 348
342 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, 349 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 // Notification that the view has lost the mouse lock. 442 // Notification that the view has lost the mouse lock.
436 virtual void LostMouseLock() {} 443 virtual void LostMouseLock() {}
437 444
438 protected: 445 protected:
439 virtual ~RenderViewHostDelegate() {} 446 virtual ~RenderViewHostDelegate() {}
440 }; 447 };
441 448
442 } // namespace content 449 } // namespace content
443 450
444 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ 451 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698