| 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; | 425 base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() override; |
| 426 virtual WebContentsAndroid* GetWebContentsAndroid(); | 426 virtual WebContentsAndroid* GetWebContentsAndroid(); |
| 427 void ActivateNearestFindResult(float x, float y) override; | 427 void ActivateNearestFindResult(float x, float y) override; |
| 428 void RequestFindMatchRects(int current_version) override; | 428 void RequestFindMatchRects(int current_version) override; |
| 429 shell::InterfaceProvider* GetJavaInterfaces() override; | 429 shell::InterfaceProvider* GetJavaInterfaces() override; |
| 430 #elif defined(OS_MACOSX) | 430 #elif defined(OS_MACOSX) |
| 431 void SetAllowOtherViews(bool allow) override; | 431 void SetAllowOtherViews(bool allow) override; |
| 432 bool GetAllowOtherViews() override; | 432 bool GetAllowOtherViews() override; |
| 433 #endif | 433 #endif |
| 434 | 434 |
| 435 // Returns true if this is a secure page which has displayed content | |
| 436 // loaded over insecure HTTP. | |
| 437 bool DisplayedInsecureContent() const; | |
| 438 | |
| 439 // Returns true if this page has displayed content loaded over HTTPS | |
| 440 // with certificate errors. | |
| 441 bool DisplayedContentWithCertErrors() const; | |
| 442 | |
| 443 // Returns true if this page is HTTP and has displayed a password field. | |
| 444 bool DisplayedPasswordFieldOnHttp() const; | |
| 445 | |
| 446 // Returns true if this page is HTTP and has displayed a credit card field. | |
| 447 bool DisplayedCreditCardFieldOnHttp() const; | |
| 448 | |
| 449 // Implementation of PageNavigator. | 435 // Implementation of PageNavigator. |
| 450 WebContents* OpenURL(const OpenURLParams& params) override; | 436 WebContents* OpenURL(const OpenURLParams& params) override; |
| 451 | 437 |
| 452 // Implementation of IPC::Sender. | 438 // Implementation of IPC::Sender. |
| 453 bool Send(IPC::Message* message) override; | 439 bool Send(IPC::Message* message) override; |
| 454 | 440 |
| 455 // RenderFrameHostDelegate --------------------------------------------------- | 441 // RenderFrameHostDelegate --------------------------------------------------- |
| 456 bool OnMessageReceived(RenderFrameHost* render_frame_host, | 442 bool OnMessageReceived(RenderFrameHost* render_frame_host, |
| 457 const IPC::Message& message) override; | 443 const IPC::Message& message) override; |
| 458 void OnAssociatedInterfaceRequest( | 444 void OnAssociatedInterfaceRequest( |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 // When a navigation occurs, we record its contents MIME type. It can be | 1228 // When a navigation occurs, we record its contents MIME type. It can be |
| 1243 // used to check whether we can do something for some special contents. | 1229 // used to check whether we can do something for some special contents. |
| 1244 std::string contents_mime_type_; | 1230 std::string contents_mime_type_; |
| 1245 | 1231 |
| 1246 // The last reported character encoding, not canonicalized. | 1232 // The last reported character encoding, not canonicalized. |
| 1247 std::string last_reported_encoding_; | 1233 std::string last_reported_encoding_; |
| 1248 | 1234 |
| 1249 // The canonicalized character encoding. | 1235 // The canonicalized character encoding. |
| 1250 std::string canonical_encoding_; | 1236 std::string canonical_encoding_; |
| 1251 | 1237 |
| 1252 // True if this is a secure page which displayed mixed content (loaded | |
| 1253 // over HTTP). | |
| 1254 bool displayed_insecure_content_; | |
| 1255 | |
| 1256 // True if this page displayed subresources loaded with HTTPS | |
| 1257 // certificate errors. | |
| 1258 bool displayed_content_with_cert_errors_; | |
| 1259 | |
| 1260 // True if this page displayed a password input field on HTTP. | |
| 1261 bool displayed_password_field_on_http_; | |
| 1262 | |
| 1263 // True if this page displayed a credit card input field on HTTP. | |
| 1264 bool displayed_credit_card_field_on_http_; | |
| 1265 | |
| 1266 // Whether the initial empty page has been accessed by another page, making it | 1238 // Whether the initial empty page has been accessed by another page, making it |
| 1267 // unsafe to show the pending URL. Usually false unless another window tries | 1239 // unsafe to show the pending URL. Usually false unless another window tries |
| 1268 // to modify the blank page. Always false after the first commit. | 1240 // to modify the blank page. Always false after the first commit. |
| 1269 bool has_accessed_initial_document_; | 1241 bool has_accessed_initial_document_; |
| 1270 | 1242 |
| 1271 // The theme color for the underlying document as specified | 1243 // The theme color for the underlying document as specified |
| 1272 // by theme-color meta tag. | 1244 // by theme-color meta tag. |
| 1273 SkColor theme_color_; | 1245 SkColor theme_color_; |
| 1274 | 1246 |
| 1275 // The last published theme color. | 1247 // The last published theme color. |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1501 // Adds/removes a callback called on creation of each new WebContents. | 1473 // Adds/removes a callback called on creation of each new WebContents. |
| 1502 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1474 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1503 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1475 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1504 | 1476 |
| 1505 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1477 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1506 }; | 1478 }; |
| 1507 | 1479 |
| 1508 } // namespace content | 1480 } // namespace content |
| 1509 | 1481 |
| 1510 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1482 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |