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_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
6 #define CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/supports_user_data.h" | 12 #include "base/supports_user_data.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "net/http/http_response_info.h" | 15 #include "net/http/http_response_info.h" |
16 #include "third_party/WebKit/public/web/WebDataSource.h" | 16 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 17 #include "url/gurl.h" |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 class NavigationState; | 21 class NavigationState; |
21 | 22 |
22 // The RenderView stores an instance of this class in the "extra data" of each | 23 // The RenderView stores an instance of this class in the "extra data" of each |
23 // WebDataSource (see RenderView::DidCreateDataSource). | 24 // WebDataSource (see RenderView::DidCreateDataSource). |
24 class CONTENT_EXPORT DocumentState | 25 class CONTENT_EXPORT DocumentState |
25 : NON_EXPORTED_BASE(public blink::WebDataSource::ExtraData), | 26 : NON_EXPORTED_BASE(public blink::WebDataSource::ExtraData), |
26 public base::SupportsUserData { | 27 public base::SupportsUserData { |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 LoadType load_type_; | 220 LoadType load_type_; |
220 | 221 |
221 scoped_ptr<NavigationState> navigation_state_; | 222 scoped_ptr<NavigationState> navigation_state_; |
222 | 223 |
223 bool can_load_local_resources_; | 224 bool can_load_local_resources_; |
224 }; | 225 }; |
225 | 226 |
226 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 227 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
227 | 228 |
228 } // namespace content | 229 } // namespace content |
OLD | NEW |