OLD | NEW |
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 #ifndef CONTENT_RENDERER_INTERNAL_DOCUMENT_STATE_DATA_H_ | 5 #ifndef CONTENT_RENDERER_INTERNAL_DOCUMENT_STATE_DATA_H_ |
6 #define CONTENT_RENDERER_INTERNAL_DOCUMENT_STATE_DATA_H_ | 6 #define CONTENT_RENDERER_INTERNAL_DOCUMENT_STATE_DATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 } | 86 } |
87 void clear_cache_policy_override() { | 87 void clear_cache_policy_override() { |
88 cache_policy_override_set_ = false; | 88 cache_policy_override_set_ = false; |
89 cache_policy_override_ = blink::WebURLRequest::UseProtocolCachePolicy; | 89 cache_policy_override_ = blink::WebURLRequest::UseProtocolCachePolicy; |
90 } | 90 } |
91 bool is_cache_policy_override_set() const { | 91 bool is_cache_policy_override_set() const { |
92 return cache_policy_override_set_; | 92 return cache_policy_override_set_; |
93 } | 93 } |
94 | 94 |
95 protected: | 95 protected: |
96 virtual ~InternalDocumentStateData(); | 96 ~InternalDocumentStateData() override; |
97 | 97 |
98 private: | 98 private: |
99 bool did_first_visually_non_empty_layout_; | 99 bool did_first_visually_non_empty_layout_; |
100 bool did_first_visually_non_empty_paint_; | 100 bool did_first_visually_non_empty_paint_; |
101 int http_status_code_; | 101 int http_status_code_; |
102 GURL searchable_form_url_; | 102 GURL searchable_form_url_; |
103 std::string searchable_form_encoding_; | 103 std::string searchable_form_encoding_; |
104 bool use_error_page_; | 104 bool use_error_page_; |
105 bool is_overriding_user_agent_; | 105 bool is_overriding_user_agent_; |
106 bool must_reset_scroll_and_scale_state_; | 106 bool must_reset_scroll_and_scale_state_; |
107 bool cache_policy_override_set_; | 107 bool cache_policy_override_set_; |
108 blink::WebURLRequest::CachePolicy cache_policy_override_; | 108 blink::WebURLRequest::CachePolicy cache_policy_override_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(InternalDocumentStateData); | 110 DISALLOW_COPY_AND_ASSIGN(InternalDocumentStateData); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace content | 113 } // namespace content |
114 | 114 |
115 #endif // CONTENT_RENDERER_INTERNAL_DOCUMENT_STATE_DATA_H_ | 115 #endif // CONTENT_RENDERER_INTERNAL_DOCUMENT_STATE_DATA_H_ |
OLD | NEW |