| 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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 const blink::WebFindOptions& options) override; | 412 const blink::WebFindOptions& options) override; |
| 413 void StopFinding(StopFindAction action) override; | 413 void StopFinding(StopFindAction action) override; |
| 414 bool WasRecentlyAudible() override; | 414 bool WasRecentlyAudible() override; |
| 415 void GetManifest(const GetManifestCallback& callback) override; | 415 void GetManifest(const GetManifestCallback& callback) override; |
| 416 void ExitFullscreen(bool will_cause_resize) override; | 416 void ExitFullscreen(bool will_cause_resize) override; |
| 417 void ResumeLoadingCreatedWebContents() override; | 417 void ResumeLoadingCreatedWebContents() override; |
| 418 void OnMediaSessionStateChanged(); | 418 void OnMediaSessionStateChanged(); |
| 419 void ResumeMediaSession() override; | 419 void ResumeMediaSession() override; |
| 420 void SuspendMediaSession() override; | 420 void SuspendMediaSession() override; |
| 421 void StopMediaSession() override; | 421 void StopMediaSession() override; |
| 422 void OnPasswordInputShownOnHttp() override; |
| 423 void OnCreditCardInputShownOnHttp() override; |
| 422 | 424 |
| 423 #if defined(OS_ANDROID) | 425 #if defined(OS_ANDROID) |
| 424 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; | 426 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; |
| 425 virtual WebContentsAndroid* GetWebContentsAndroid(); | 427 virtual WebContentsAndroid* GetWebContentsAndroid(); |
| 426 void ActivateNearestFindResult(float x, float y) override; | 428 void ActivateNearestFindResult(float x, float y) override; |
| 427 void RequestFindMatchRects(int current_version) override; | 429 void RequestFindMatchRects(int current_version) override; |
| 428 shell::InterfaceProvider* GetJavaInterfaces() override; | 430 shell::InterfaceProvider* GetJavaInterfaces() override; |
| 429 #elif defined(OS_MACOSX) | 431 #elif defined(OS_MACOSX) |
| 430 void SetAllowOtherViews(bool allow) override; | 432 void SetAllowOtherViews(bool allow) override; |
| 431 bool GetAllowOtherViews() override; | 433 bool GetAllowOtherViews() override; |
| 432 #endif | 434 #endif |
| 433 | 435 |
| 434 // Returns true if this is a secure page which has displayed content | 436 // Returns true if this is a secure page which has displayed content |
| 435 // loaded over insecure HTTP. | 437 // loaded over insecure HTTP. |
| 436 bool DisplayedInsecureContent() const; | 438 bool DisplayedInsecureContent() const; |
| 437 | 439 |
| 438 // Returns true if this page has displayed content loaded over HTTPS | 440 // Returns true if this page has displayed content loaded over HTTPS |
| 439 // with certificate errors. | 441 // with certificate errors. |
| 440 bool DisplayedContentWithCertErrors() const; | 442 bool DisplayedContentWithCertErrors() const; |
| 441 | 443 |
| 444 // Returns true if this page is HTTP and has displayed a password field. |
| 445 bool DisplayedPasswordFieldOnHttp() const; |
| 446 |
| 447 // Returns true if this page is HTTP and has displayed a credit card field. |
| 448 bool DisplayedCreditCardFieldOnHttp() const; |
| 449 |
| 442 // Implementation of PageNavigator. | 450 // Implementation of PageNavigator. |
| 443 WebContents* OpenURL(const OpenURLParams& params) override; | 451 WebContents* OpenURL(const OpenURLParams& params) override; |
| 444 | 452 |
| 445 // Implementation of IPC::Sender. | 453 // Implementation of IPC::Sender. |
| 446 bool Send(IPC::Message* message) override; | 454 bool Send(IPC::Message* message) override; |
| 447 | 455 |
| 448 // RenderFrameHostDelegate --------------------------------------------------- | 456 // RenderFrameHostDelegate --------------------------------------------------- |
| 449 bool OnMessageReceived(RenderFrameHost* render_frame_host, | 457 bool OnMessageReceived(RenderFrameHost* render_frame_host, |
| 450 const IPC::Message& message) override; | 458 const IPC::Message& message) override; |
| 451 void OnAssociatedInterfaceRequest( | 459 void OnAssociatedInterfaceRequest( |
| (...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 std::string canonical_encoding_; | 1251 std::string canonical_encoding_; |
| 1244 | 1252 |
| 1245 // True if this is a secure page which displayed mixed content (loaded | 1253 // True if this is a secure page which displayed mixed content (loaded |
| 1246 // over HTTP). | 1254 // over HTTP). |
| 1247 bool displayed_insecure_content_; | 1255 bool displayed_insecure_content_; |
| 1248 | 1256 |
| 1249 // True if this page displayed subresources loaded with HTTPS | 1257 // True if this page displayed subresources loaded with HTTPS |
| 1250 // certificate errors. | 1258 // certificate errors. |
| 1251 bool displayed_content_with_cert_errors_; | 1259 bool displayed_content_with_cert_errors_; |
| 1252 | 1260 |
| 1261 // True if this page displayed a password input field on HTTP. |
| 1262 bool displayed_password_field_on_http_; |
| 1263 |
| 1264 // True if this page displayed a credit card input field on HTTP. |
| 1265 bool displayed_credit_card_field_on_http_; |
| 1266 |
| 1253 // Whether the initial empty page has been accessed by another page, making it | 1267 // Whether the initial empty page has been accessed by another page, making it |
| 1254 // unsafe to show the pending URL. Usually false unless another window tries | 1268 // unsafe to show the pending URL. Usually false unless another window tries |
| 1255 // to modify the blank page. Always false after the first commit. | 1269 // to modify the blank page. Always false after the first commit. |
| 1256 bool has_accessed_initial_document_; | 1270 bool has_accessed_initial_document_; |
| 1257 | 1271 |
| 1258 // The theme color for the underlying document as specified | 1272 // The theme color for the underlying document as specified |
| 1259 // by theme-color meta tag. | 1273 // by theme-color meta tag. |
| 1260 SkColor theme_color_; | 1274 SkColor theme_color_; |
| 1261 | 1275 |
| 1262 // The last published theme color. | 1276 // The last published theme color. |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1488 // Adds/removes a callback called on creation of each new WebContents. | 1502 // Adds/removes a callback called on creation of each new WebContents. |
| 1489 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1503 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1490 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1504 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1491 | 1505 |
| 1492 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1506 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1493 }; | 1507 }; |
| 1494 | 1508 |
| 1495 } // namespace content | 1509 } // namespace content |
| 1496 | 1510 |
| 1497 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1511 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |