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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 SiteInstanceImpl* GetSiteInstance() const override; | 284 SiteInstanceImpl* GetSiteInstance() const override; |
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; | |
295 void IncrementCapturerCount(const gfx::Size& capture_size) override; | 294 void IncrementCapturerCount(const gfx::Size& capture_size) override; |
296 void DecrementCapturerCount() override; | 295 void DecrementCapturerCount() override; |
297 int GetCapturerCount() const override; | 296 int GetCapturerCount() const override; |
298 bool IsAudioMuted() const override; | 297 bool IsAudioMuted() const override; |
299 void SetAudioMuted(bool mute) override; | 298 void SetAudioMuted(bool mute) override; |
300 bool IsConnectedToBluetoothDevice() const override; | 299 bool IsConnectedToBluetoothDevice() const override; |
301 bool IsCrashed() const override; | 300 bool IsCrashed() const override; |
302 void SetIsCrashed(base::TerminationStatus status, int error_code) override; | 301 void SetIsCrashed(base::TerminationStatus status, int error_code) override; |
303 base::TerminationStatus GetCrashedStatus() const override; | 302 base::TerminationStatus GetCrashedStatus() const override; |
304 int GetCrashedErrorCode() const override; | 303 int GetCrashedErrorCode() const override; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 #if defined(OS_ANDROID) | 400 #if defined(OS_ANDROID) |
402 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; | 401 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; |
403 virtual WebContentsAndroid* GetWebContentsAndroid(); | 402 virtual WebContentsAndroid* GetWebContentsAndroid(); |
404 void ActivateNearestFindResult(float x, float y) override; | 403 void ActivateNearestFindResult(float x, float y) override; |
405 void RequestFindMatchRects(int current_version) override; | 404 void RequestFindMatchRects(int current_version) override; |
406 #elif defined(OS_MACOSX) | 405 #elif defined(OS_MACOSX) |
407 void SetAllowOtherViews(bool allow) override; | 406 void SetAllowOtherViews(bool allow) override; |
408 bool GetAllowOtherViews() override; | 407 bool GetAllowOtherViews() override; |
409 #endif | 408 #endif |
410 | 409 |
| 410 // Returns true if this is a secure page which has displayed content |
| 411 // loaded over insecure HTTP. |
| 412 bool DisplayedInsecureContent() const; |
| 413 |
| 414 // Returns true if this page has displayed content loaded over HTTPS |
| 415 // with certificate errors. |
| 416 bool DisplayedContentWithCertErrors() const; |
| 417 |
411 // Implementation of PageNavigator. | 418 // Implementation of PageNavigator. |
412 WebContents* OpenURL(const OpenURLParams& params) override; | 419 WebContents* OpenURL(const OpenURLParams& params) override; |
413 | 420 |
414 // Implementation of IPC::Sender. | 421 // Implementation of IPC::Sender. |
415 bool Send(IPC::Message* message) override; | 422 bool Send(IPC::Message* message) override; |
416 | 423 |
417 // RenderFrameHostDelegate --------------------------------------------------- | 424 // RenderFrameHostDelegate --------------------------------------------------- |
418 bool OnMessageReceived(RenderFrameHost* render_frame_host, | 425 bool OnMessageReceived(RenderFrameHost* render_frame_host, |
419 const IPC::Message& message) override; | 426 const IPC::Message& message) override; |
420 const GURL& GetMainFrameLastCommittedURL() const override; | 427 const GURL& GetMainFrameLastCommittedURL() const override; |
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 // When a navigation occurs, we record its contents MIME type. It can be | 1201 // When a navigation occurs, we record its contents MIME type. It can be |
1195 // used to check whether we can do something for some special contents. | 1202 // used to check whether we can do something for some special contents. |
1196 std::string contents_mime_type_; | 1203 std::string contents_mime_type_; |
1197 | 1204 |
1198 // The last reported character encoding, not canonicalized. | 1205 // The last reported character encoding, not canonicalized. |
1199 std::string last_reported_encoding_; | 1206 std::string last_reported_encoding_; |
1200 | 1207 |
1201 // The canonicalized character encoding. | 1208 // The canonicalized character encoding. |
1202 std::string canonical_encoding_; | 1209 std::string canonical_encoding_; |
1203 | 1210 |
1204 // True if this is a secure page which displayed insecure content. | 1211 // True if this is a secure page which displayed mixed content (loaded |
| 1212 // over HTTP). |
1205 bool displayed_insecure_content_; | 1213 bool displayed_insecure_content_; |
1206 | 1214 |
| 1215 // True if this page displayed subresources loaded with HTTPS |
| 1216 // certificate errors. |
| 1217 bool displayed_content_with_cert_errors_; |
| 1218 |
1207 // Whether the initial empty page has been accessed by another page, making it | 1219 // Whether the initial empty page has been accessed by another page, making it |
1208 // unsafe to show the pending URL. Usually false unless another window tries | 1220 // unsafe to show the pending URL. Usually false unless another window tries |
1209 // to modify the blank page. Always false after the first commit. | 1221 // to modify the blank page. Always false after the first commit. |
1210 bool has_accessed_initial_document_; | 1222 bool has_accessed_initial_document_; |
1211 | 1223 |
1212 // The theme color for the underlying document as specified | 1224 // The theme color for the underlying document as specified |
1213 // by theme-color meta tag. | 1225 // by theme-color meta tag. |
1214 SkColor theme_color_; | 1226 SkColor theme_color_; |
1215 | 1227 |
1216 // The last published theme color. | 1228 // The last published theme color. |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 // Adds/removes a callback called on creation of each new WebContents. | 1447 // Adds/removes a callback called on creation of each new WebContents. |
1436 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1448 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1437 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1449 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1438 | 1450 |
1439 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1451 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1440 }; | 1452 }; |
1441 | 1453 |
1442 } // namespace content | 1454 } // namespace content |
1443 | 1455 |
1444 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1456 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |