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

Side by Side Diff: chrome/renderer/net/net_error_helper.cc

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "chrome/renderer/net/net_error_helper.h" 5 #include "chrome/renderer/net/net_error_helper.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/common/localized_error.h" 8 #include "chrome/common/localized_error.h"
9 #include "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
10 #include "chrome/common/net/net_error_info.h" 10 #include "chrome/common/net/net_error_info.h"
11 #include "content/public/common/content_client.h" 11 #include "content/public/common/content_client.h"
12 #include "content/public/common/url_constants.h" 12 #include "content/public/common/url_constants.h"
13 #include "content/public/renderer/content_renderer_client.h" 13 #include "content/public/renderer/content_renderer_client.h"
14 #include "content/public/renderer/render_thread.h" 14 #include "content/public/renderer/render_thread.h"
15 #include "content/public/renderer/render_view.h" 15 #include "content/public/renderer/render_view.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "ipc/ipc_message.h" 17 #include "ipc/ipc_message.h"
18 #include "ipc/ipc_message_macros.h" 18 #include "ipc/ipc_message_macros.h"
19 #include "net/base/net_errors.h" 19 #include "net/base/net_errors.h"
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h"
21 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" 21 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h"
22 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" 22 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
25 25
26 using base::DictionaryValue; 26 using base::DictionaryValue;
27 using chrome_common_net::DnsProbeResult; 27 using chrome_common_net::DnsProbeResult;
28 using content::GetContentClient;
29 using content::RenderThread; 28 using content::RenderThread;
30 using content::RenderView; 29 using content::RenderView;
31 using content::RenderViewObserver; 30 using content::RenderViewObserver;
32 using content::kUnreachableWebDataURL; 31 using content::kUnreachableWebDataURL;
33 32
34 namespace { 33 namespace {
35 34
36 GURL GetProvisionallyLoadingURLFromWebFrame(WebKit::WebFrame* frame) { 35 GURL GetProvisionallyLoadingURLFromWebFrame(WebKit::WebFrame* frame) {
37 return frame->provisionalDataSource()->request().url(); 36 return frame->provisionalDataSource()->request().url();
38 } 37 }
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 178
180 DVLOG(1) << "net error code is " << net_error; 179 DVLOG(1) << "net error code is " << net_error;
181 180
182 DictionaryValue error_strings; 181 DictionaryValue error_strings;
183 LocalizedError::GetStrings(NetErrorToWebURLError(net_error), 182 LocalizedError::GetStrings(NetErrorToWebURLError(net_error),
184 &error_strings, 183 &error_strings,
185 RenderThread::Get()->GetLocale()); 184 RenderThread::Get()->GetLocale());
186 185
187 // TODO(ttuttle): Update error page with error_strings. 186 // TODO(ttuttle): Update error page with error_strings.
188 } 187 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/page_load_histograms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698