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

Side by Side Diff: content/renderer/mock_content_renderer_client.h

Issue 7955001: Update Chrome to use new context notification APIs from WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 9 years, 3 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 | 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_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 virtual bool AllowPopup(const GURL& creator) OVERRIDE; 36 virtual bool AllowPopup(const GURL& creator) OVERRIDE;
37 virtual bool ShouldFork(WebKit::WebFrame* frame, 37 virtual bool ShouldFork(WebKit::WebFrame* frame,
38 const GURL& url, 38 const GURL& url,
39 bool is_content_initiated, 39 bool is_content_initiated,
40 bool is_initial_navigation, 40 bool is_initial_navigation,
41 bool* send_referrer) OVERRIDE; 41 bool* send_referrer) OVERRIDE;
42 virtual bool WillSendRequest(WebKit::WebFrame* frame, 42 virtual bool WillSendRequest(WebKit::WebFrame* frame,
43 const GURL& url, 43 const GURL& url,
44 GURL* new_url) OVERRIDE; 44 GURL* new_url) OVERRIDE;
45 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE; 45 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE;
46 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) OVERRIDE; 46 virtual void DidCreateScriptContext(WebKit::WebFrame* frame,
47 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) OVERRIDE; 47 v8::Handle<v8::Context> context,
48 virtual void DidCreateIsolatedScriptContext( 48 int world_id) OVERRIDE;
49 WebKit::WebFrame* frame, int world_id, 49 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame,
50 v8::Handle<v8::Context> context) OVERRIDE; 50 v8::Handle<v8::Context> context,
51 int world_id) OVERRIDE;
51 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 52 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
52 size_t length) OVERRIDE; 53 size_t length) OVERRIDE;
53 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; 54 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE;
54 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; 55 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE;
55 virtual bool ShouldOverridePageVisibilityState( 56 virtual bool ShouldOverridePageVisibilityState(
56 const RenderView* render_view, 57 const RenderView* render_view,
57 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; 58 WebKit::WebPageVisibilityState* override_state) const OVERRIDE;
58 virtual bool HandleGetCookieRequest(RenderView* sender, 59 virtual bool HandleGetCookieRequest(RenderView* sender,
59 const GURL& url, 60 const GURL& url,
60 const GURL& first_party_for_cookies, 61 const GURL& first_party_for_cookies,
61 std::string* cookies) OVERRIDE; 62 std::string* cookies) OVERRIDE;
62 virtual bool HandleSetCookieRequest(RenderView* sender, 63 virtual bool HandleSetCookieRequest(RenderView* sender,
63 const GURL& url, 64 const GURL& url,
64 const GURL& first_party_for_cookies, 65 const GURL& first_party_for_cookies,
65 const std::string& value) OVERRIDE; 66 const std::string& value) OVERRIDE;
66 }; 67 };
67 68
68 } // namespace content 69 } // namespace content
69 70
70 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ 71 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/content_renderer_client.h ('k') | content/renderer/mock_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698