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

Side by Side Diff: content/child/web_url_loader_impl.h

Issue 958083002: PlzNavigate: Show error pages when the navigation failed before commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@support-data-urls
Patch Set: Updated test Created 5 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
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHILD_WEB_URL_LOADER_IMPL_H_ 5 #ifndef CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_
6 #define CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ 6 #define CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 22 matching lines...) Expand all
33 }; 33 };
34 34
35 class CONTENT_EXPORT WebURLLoaderImpl 35 class CONTENT_EXPORT WebURLLoaderImpl
36 : public NON_EXPORTED_BASE(blink::WebURLLoader) { 36 : public NON_EXPORTED_BASE(blink::WebURLLoader) {
37 public: 37 public:
38 explicit WebURLLoaderImpl( 38 explicit WebURLLoaderImpl(
39 ResourceDispatcher* resource_dispatcher, 39 ResourceDispatcher* resource_dispatcher,
40 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 40 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
41 virtual ~WebURLLoaderImpl(); 41 virtual ~WebURLLoaderImpl();
42 42
43 static blink::WebURLError CreateError(const blink::WebURL& unreachable_url,
44 bool stale_copy_in_cache,
45 int reason);
46 static void PopulateURLResponse( 43 static void PopulateURLResponse(
47 const GURL& url, 44 const GURL& url,
48 const ResourceResponseInfo& info, 45 const ResourceResponseInfo& info,
49 blink::WebURLResponse* response); 46 blink::WebURLResponse* response);
50 47
51 // WebURLLoader methods: 48 // WebURLLoader methods:
52 virtual void loadSynchronously( 49 virtual void loadSynchronously(
53 const blink::WebURLRequest& request, 50 const blink::WebURLRequest& request,
54 blink::WebURLResponse& response, 51 blink::WebURLResponse& response,
55 blink::WebURLError& error, 52 blink::WebURLError& error,
(...skipping 11 matching lines...) Expand all
67 private: 64 private:
68 class Context; 65 class Context;
69 scoped_refptr<Context> context_; 66 scoped_refptr<Context> context_;
70 67
71 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); 68 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl);
72 }; 69 };
73 70
74 } // namespace content 71 } // namespace content
75 72
76 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ 73 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698