Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_CHILD_REQUEST_EXTRA_DATA_H_ | 5 #ifndef CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
| 6 #define CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 6 #define CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/common/page_transition_types.h" | 10 #include "content/public/common/page_transition_types.h" |
| 11 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" | 11 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" |
| 12 #include "webkit/child/weburlrequest_extradata_impl.h" | 12 #include "webkit/child/weburlrequest_extradata_impl.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 // The RenderView stores an instance of this class in the "extra data" of each | 16 // The RenderView and EmbeddedWorkerContextClient store an instance of this |
| 17 // ResourceRequest (see RenderFrameImpl::willSendRequest). | 17 // class in the "extra data" of each ResourceRequest (see the willSendRequest |
| 18 // methods of RenderFrameImpl and EmbeddedWorkerContextClient willSendRequest). | |
| 18 class CONTENT_EXPORT RequestExtraData | 19 class CONTENT_EXPORT RequestExtraData |
| 19 : NON_EXPORTED_BASE(public webkit_glue::WebURLRequestExtraDataImpl) { | 20 : NON_EXPORTED_BASE(public webkit_glue::WebURLRequestExtraDataImpl) { |
| 20 public: | 21 public: |
| 22 RequestExtraData(); | |
| 23 explicit RequestExtraData(int service_worker_provider_id); | |
|
dcheng
2014/03/17 22:12:10
I'm not a huge fan of the constructor from int, si
michaeln
2014/03/17 22:53:58
I'd chose this instead of a public setter for just
| |
| 21 RequestExtraData(blink::WebPageVisibilityState visibility_state, | 24 RequestExtraData(blink::WebPageVisibilityState visibility_state, |
| 22 const blink::WebString& custom_user_agent, | 25 const blink::WebString& custom_user_agent, |
| 23 bool was_after_preconnect_request, | 26 bool was_after_preconnect_request, |
| 24 int render_frame_id, | 27 int render_frame_id, |
| 25 bool is_main_frame, | 28 bool is_main_frame, |
| 26 const GURL& frame_origin, | 29 const GURL& frame_origin, |
| 27 bool parent_is_main_frame, | 30 bool parent_is_main_frame, |
| 28 int parent_render_frame_id, | 31 int parent_render_frame_id, |
| 29 bool allow_download, | 32 bool allow_download, |
| 30 PageTransition transition_type, | 33 PageTransition transition_type, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 int transferred_request_child_id_; | 73 int transferred_request_child_id_; |
| 71 int transferred_request_request_id_; | 74 int transferred_request_request_id_; |
| 72 int service_worker_provider_id_; | 75 int service_worker_provider_id_; |
| 73 | 76 |
| 74 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); | 77 DISALLOW_COPY_AND_ASSIGN(RequestExtraData); |
| 75 }; | 78 }; |
| 76 | 79 |
| 77 } // namespace content | 80 } // namespace content |
| 78 | 81 |
| 79 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ | 82 #endif // CONTENT_CHILD_REQUEST_EXTRA_DATA_H_ |
| OLD | NEW |