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

Side by Side Diff: webkit/child/weburlrequest_extradata_impl.h

Issue 61553006: Rename WebKit namespace to blink (part 5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « webkit/child/weburlloader_impl.cc ('k') | webkit/child/weburlrequest_extradata_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 (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 WEBKIT_CHILD_WEBURLREQUEST_EXTRADATA_IMPL_H_ 5 #ifndef WEBKIT_CHILD_WEBURLREQUEST_EXTRADATA_IMPL_H_
6 #define WEBKIT_CHILD_WEBURLREQUEST_EXTRADATA_IMPL_H_ 6 #define WEBKIT_CHILD_WEBURLREQUEST_EXTRADATA_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 9 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
10 #include "third_party/WebKit/public/platform/WebString.h" 10 #include "third_party/WebKit/public/platform/WebString.h"
11 #include "third_party/WebKit/public/platform/WebURLRequest.h" 11 #include "third_party/WebKit/public/platform/WebURLRequest.h"
12 #include "webkit/child/webkit_child_export.h" 12 #include "webkit/child/webkit_child_export.h"
13 13
14 namespace webkit_glue { 14 namespace webkit_glue {
15 15
16 // Base class for Chrome's implementation of the "extra data" stored in each 16 // Base class for Chrome's implementation of the "extra data" stored in each
17 // ResourceRequest. 17 // ResourceRequest.
18 class WEBKIT_CHILD_EXPORT WebURLRequestExtraDataImpl : 18 class WEBKIT_CHILD_EXPORT WebURLRequestExtraDataImpl :
19 public NON_EXPORTED_BASE(WebKit::WebURLRequest::ExtraData) { 19 public NON_EXPORTED_BASE(blink::WebURLRequest::ExtraData) {
20 public: 20 public:
21 // |custom_user_agent| is used to communicate an overriding custom user agent 21 // |custom_user_agent| is used to communicate an overriding custom user agent
22 // to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no 22 // to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no
23 // override and an empty string to indicate that there should be no user 23 // override and an empty string to indicate that there should be no user
24 // agent. This needs to be here, instead of content's |RequestExtraData| since 24 // agent. This needs to be here, instead of content's |RequestExtraData| since
25 // ppb_url_request_info_impl.cc needs to be able to set it. 25 // ppb_url_request_info_impl.cc needs to be able to set it.
26 explicit WebURLRequestExtraDataImpl( 26 explicit WebURLRequestExtraDataImpl(
27 WebKit::WebReferrerPolicy referrer_policy, 27 blink::WebReferrerPolicy referrer_policy,
28 const WebKit::WebString& custom_user_agent, 28 const blink::WebString& custom_user_agent,
29 bool was_after_preconnect_request); 29 bool was_after_preconnect_request);
30 virtual ~WebURLRequestExtraDataImpl(); 30 virtual ~WebURLRequestExtraDataImpl();
31 31
32 WebKit::WebReferrerPolicy referrer_policy() const { return referrer_policy_; } 32 blink::WebReferrerPolicy referrer_policy() const { return referrer_policy_; }
33 const WebKit::WebString& custom_user_agent() const { 33 const blink::WebString& custom_user_agent() const {
34 return custom_user_agent_; 34 return custom_user_agent_;
35 } 35 }
36 bool was_after_preconnect_request() { return was_after_preconnect_request_; } 36 bool was_after_preconnect_request() { return was_after_preconnect_request_; }
37 37
38 private: 38 private:
39 WebKit::WebReferrerPolicy referrer_policy_; 39 blink::WebReferrerPolicy referrer_policy_;
40 WebKit::WebString custom_user_agent_; 40 blink::WebString custom_user_agent_;
41 bool was_after_preconnect_request_; 41 bool was_after_preconnect_request_;
42 42
43 DISALLOW_COPY_AND_ASSIGN(WebURLRequestExtraDataImpl); 43 DISALLOW_COPY_AND_ASSIGN(WebURLRequestExtraDataImpl);
44 }; 44 };
45 45
46 } // namespace webkit_glue 46 } // namespace webkit_glue
47 47
48 #endif // WEBKIT_CHILD_WEBURLREQUEST_EXTRADATA_IMPL_H_ 48 #endif // WEBKIT_CHILD_WEBURLREQUEST_EXTRADATA_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/child/weburlloader_impl.cc ('k') | webkit/child/weburlrequest_extradata_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698