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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 SiteInstanceImpl* GetPendingSiteInstance() const override; | 285 SiteInstanceImpl* GetPendingSiteInstance() const override; |
286 bool IsLoading() const override; | 286 bool IsLoading() const override; |
287 bool IsLoadingToDifferentDocument() const override; | 287 bool IsLoadingToDifferentDocument() const override; |
288 bool IsWaitingForResponse() const override; | 288 bool IsWaitingForResponse() const override; |
289 const net::LoadStateWithParam& GetLoadState() const override; | 289 const net::LoadStateWithParam& GetLoadState() const override; |
290 const base::string16& GetLoadStateHost() const override; | 290 const base::string16& GetLoadStateHost() const override; |
291 uint64_t GetUploadSize() const override; | 291 uint64_t GetUploadSize() const override; |
292 uint64_t GetUploadPosition() const override; | 292 uint64_t GetUploadPosition() const override; |
293 const std::string& GetEncoding() const override; | 293 const std::string& GetEncoding() const override; |
294 bool DisplayedInsecureContent() const override; | 294 bool DisplayedInsecureContent() const override; |
| 295 bool DisplayedContentWithCertErrors() const override; |
295 void IncrementCapturerCount(const gfx::Size& capture_size) override; | 296 void IncrementCapturerCount(const gfx::Size& capture_size) override; |
296 void DecrementCapturerCount() override; | 297 void DecrementCapturerCount() override; |
297 int GetCapturerCount() const override; | 298 int GetCapturerCount() const override; |
298 bool IsAudioMuted() const override; | 299 bool IsAudioMuted() const override; |
299 void SetAudioMuted(bool mute) override; | 300 void SetAudioMuted(bool mute) override; |
300 bool IsConnectedToBluetoothDevice() const override; | 301 bool IsConnectedToBluetoothDevice() const override; |
301 bool IsCrashed() const override; | 302 bool IsCrashed() const override; |
302 void SetIsCrashed(base::TerminationStatus status, int error_code) override; | 303 void SetIsCrashed(base::TerminationStatus status, int error_code) override; |
303 base::TerminationStatus GetCrashedStatus() const override; | 304 base::TerminationStatus GetCrashedStatus() const override; |
304 int GetCrashedErrorCode() const override; | 305 int GetCrashedErrorCode() const override; |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 // When a navigation occurs, we record its contents MIME type. It can be | 1193 // When a navigation occurs, we record its contents MIME type. It can be |
1193 // used to check whether we can do something for some special contents. | 1194 // used to check whether we can do something for some special contents. |
1194 std::string contents_mime_type_; | 1195 std::string contents_mime_type_; |
1195 | 1196 |
1196 // The last reported character encoding, not canonicalized. | 1197 // The last reported character encoding, not canonicalized. |
1197 std::string last_reported_encoding_; | 1198 std::string last_reported_encoding_; |
1198 | 1199 |
1199 // The canonicalized character encoding. | 1200 // The canonicalized character encoding. |
1200 std::string canonical_encoding_; | 1201 std::string canonical_encoding_; |
1201 | 1202 |
1202 // True if this is a secure page which displayed insecure content. | 1203 // True if this is a secure page which displayed mixed content (loaded |
| 1204 // over HTTP). |
1203 bool displayed_insecure_content_; | 1205 bool displayed_insecure_content_; |
1204 | 1206 |
| 1207 // True if this page displayed subresources loaded with HTTPS |
| 1208 // certificate errors. |
| 1209 bool displayed_content_with_cert_errors_; |
| 1210 |
1205 // Whether the initial empty page has been accessed by another page, making it | 1211 // Whether the initial empty page has been accessed by another page, making it |
1206 // unsafe to show the pending URL. Usually false unless another window tries | 1212 // unsafe to show the pending URL. Usually false unless another window tries |
1207 // to modify the blank page. Always false after the first commit. | 1213 // to modify the blank page. Always false after the first commit. |
1208 bool has_accessed_initial_document_; | 1214 bool has_accessed_initial_document_; |
1209 | 1215 |
1210 // The theme color for the underlying document as specified | 1216 // The theme color for the underlying document as specified |
1211 // by theme-color meta tag. | 1217 // by theme-color meta tag. |
1212 SkColor theme_color_; | 1218 SkColor theme_color_; |
1213 | 1219 |
1214 // The last published theme color. | 1220 // The last published theme color. |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1433 // Adds/removes a callback called on creation of each new WebContents. | 1439 // Adds/removes a callback called on creation of each new WebContents. |
1434 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1440 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1435 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1441 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1436 | 1442 |
1437 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1443 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1438 }; | 1444 }; |
1439 | 1445 |
1440 } // namespace content | 1446 } // namespace content |
1441 | 1447 |
1442 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1448 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |