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

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

Issue 9386001: Implement a module system for the extension bindings JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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) 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_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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const GURL& url, 50 const GURL& url,
51 bool is_content_initiated, 51 bool is_content_initiated,
52 bool is_initial_navigation, 52 bool is_initial_navigation,
53 bool* send_referrer) OVERRIDE; 53 bool* send_referrer) OVERRIDE;
54 virtual bool WillSendRequest(WebKit::WebFrame* frame, 54 virtual bool WillSendRequest(WebKit::WebFrame* frame,
55 const GURL& url, 55 const GURL& url,
56 GURL* new_url) OVERRIDE; 56 GURL* new_url) OVERRIDE;
57 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE; 57 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE;
58 virtual void DidCreateScriptContext(WebKit::WebFrame* frame, 58 virtual void DidCreateScriptContext(WebKit::WebFrame* frame,
59 v8::Handle<v8::Context> context, 59 v8::Handle<v8::Context> context,
60 int extension_group,
60 int world_id) OVERRIDE; 61 int world_id) OVERRIDE;
61 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, 62 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame,
62 v8::Handle<v8::Context> context, 63 v8::Handle<v8::Context> context,
63 int world_id) OVERRIDE; 64 int world_id) OVERRIDE;
64 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 65 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
65 size_t length) OVERRIDE; 66 size_t length) OVERRIDE;
66 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; 67 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE;
67 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; 68 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE;
68 virtual bool ShouldOverridePageVisibilityState( 69 virtual bool ShouldOverridePageVisibilityState(
69 const RenderView* render_view, 70 const RenderView* render_view,
70 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; 71 WebKit::WebPageVisibilityState* override_state) const OVERRIDE;
71 virtual bool HandleGetCookieRequest(RenderView* sender, 72 virtual bool HandleGetCookieRequest(RenderView* sender,
72 const GURL& url, 73 const GURL& url,
73 const GURL& first_party_for_cookies, 74 const GURL& first_party_for_cookies,
74 std::string* cookies) OVERRIDE; 75 std::string* cookies) OVERRIDE;
75 virtual bool HandleSetCookieRequest(RenderView* sender, 76 virtual bool HandleSetCookieRequest(RenderView* sender,
76 const GURL& url, 77 const GURL& url,
77 const GURL& first_party_for_cookies, 78 const GURL& first_party_for_cookies,
78 const std::string& value) OVERRIDE; 79 const std::string& value) OVERRIDE;
79 virtual void RegisterPPAPIInterfaceFactories( 80 virtual void RegisterPPAPIInterfaceFactories(
80 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE; 81 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE;
81 virtual bool AllowSocketAPI(const GURL& url) OVERRIDE; 82 virtual bool AllowSocketAPI(const GURL& url) OVERRIDE;
82 }; 83 };
83 84
84 } // namespace content 85 } // namespace content
85 86
86 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_ 87 #endif // CONTENT_RENDERER_MOCK_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698