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

Side by Side Diff: content/shell/shell_content_renderer_client.cc

Issue 7857019: Basic scaffolding for a "content shell", i.e. test browser over the content module. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/shell/shell_content_renderer_client.h"
6
7 #include "v8/include/v8.h"
8
9 namespace content {
10
11 ShellContentRendererClient::~ShellContentRendererClient() {
12 }
13
14 void ShellContentRendererClient::RenderThreadStarted() {
15 }
16
17 void ShellContentRendererClient::RenderViewCreated(RenderView* render_view) {
18 }
19
20 void ShellContentRendererClient::SetNumberOfViews(int number_of_views) {
21 }
22
23 SkBitmap* ShellContentRendererClient::GetSadPluginBitmap() {
24 return NULL;
25 }
26
27 std::string ShellContentRendererClient::GetDefaultEncoding() {
28 return std::string();
29 }
30
31 WebKit::WebPlugin* ShellContentRendererClient::CreatePlugin(
32 RenderView* render_view,
33 WebKit::WebFrame* frame,
34 const WebKit::WebPluginParams& params) {
35 return NULL;
36 }
37
38 void ShellContentRendererClient::ShowErrorPage(RenderView* render_view,
39 WebKit::WebFrame* frame,
40 int http_status_code) {
41 }
42
43 std::string ShellContentRendererClient::GetNavigationErrorHtml(
44 const WebKit::WebURLRequest& failed_request,
45 const WebKit::WebURLError& error) {
46 return std::string();
47 }
48
49 bool ShellContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
50 return true;
51 }
52
53 bool ShellContentRendererClient::AllowPopup(const GURL& creator) {
54 return false;
55 }
56
57 bool ShellContentRendererClient::ShouldFork(WebKit::WebFrame* frame,
58 const GURL& url,
59 bool is_content_initiated,
60 bool is_initial_navigation,
61 bool* send_referrer) {
62 return false;
63 }
64
65 bool ShellContentRendererClient::WillSendRequest(WebKit::WebFrame* frame,
66 const GURL& url,
67 GURL* new_url) {
68 return false;
69 }
70
71 bool ShellContentRendererClient::ShouldPumpEventsDuringCookieMessage() {
72 return false;
73 }
74
75 void ShellContentRendererClient::DidCreateScriptContext(
76 WebKit::WebFrame* frame) {
77 }
78
79 void ShellContentRendererClient::DidDestroyScriptContext(
80 WebKit::WebFrame* frame) {
81 }
82
83 void ShellContentRendererClient::DidCreateIsolatedScriptContext(
84 WebKit::WebFrame* frame, int world_id, v8::Handle<v8::Context> context) {
85 }
86
87 unsigned long long ShellContentRendererClient::VisitedLinkHash(
88 const char* canonical_url, size_t length) {
89 return 0LL;
90 }
91
92 bool ShellContentRendererClient::IsLinkVisited(unsigned long long link_hash) {
93 return false;
94 }
95
96 void ShellContentRendererClient::PrefetchHostName(
97 const char* hostname, size_t length) {
98 }
99
100 bool ShellContentRendererClient::ShouldOverridePageVisibilityState(
101 const RenderView* render_view,
102 WebKit::WebPageVisibilityState* override_state) const {
103 return false;
104 }
105
106 bool ShellContentRendererClient::HandleGetCookieRequest(
107 RenderView* sender,
108 const GURL& url,
109 const GURL& first_party_for_cookies,
110 std::string* cookies) {
111 return false;
112 }
113
114 bool ShellContentRendererClient::HandleSetCookieRequest(
115 RenderView* sender,
116 const GURL& url,
117 const GURL& first_party_for_cookies,
118 const std::string& value) {
119 return false;
120 }
121
122 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_content_renderer_client.h ('k') | content/shell/shell_content_utility_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698