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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 void OnDidFailLoadWithError(int64 frame_id, | 442 void OnDidFailLoadWithError(int64 frame_id, |
443 const GURL& validated_url, | 443 const GURL& validated_url, |
444 bool is_main_frame, | 444 bool is_main_frame, |
445 int error_code, | 445 int error_code, |
446 const string16& error_description); | 446 const string16& error_description); |
447 void OnUpdateContentRestrictions(int restrictions); | 447 void OnUpdateContentRestrictions(int restrictions); |
448 void OnGoToEntryAtOffset(int offset); | 448 void OnGoToEntryAtOffset(int offset); |
449 void OnUpdateZoomLimits(int minimum_percent, | 449 void OnUpdateZoomLimits(int minimum_percent, |
450 int maximum_percent, | 450 int maximum_percent, |
451 bool remember); | 451 bool remember); |
452 void OnSaveURL(const GURL& url); | 452 void OnSaveURL(const GURL& url, const content::Referrer& referrer); |
453 void OnEnumerateDirectory(int request_id, const FilePath& path); | 453 void OnEnumerateDirectory(int request_id, const FilePath& path); |
454 void OnJSOutOfMemory(); | 454 void OnJSOutOfMemory(); |
455 | 455 |
456 void OnRegisterProtocolHandler(const std::string& protocol, | 456 void OnRegisterProtocolHandler(const std::string& protocol, |
457 const GURL& url, | 457 const GURL& url, |
458 const string16& title); | 458 const string16& title); |
459 void OnFindReply(int request_id, int number_of_matches, | 459 void OnFindReply(int request_id, int number_of_matches, |
460 const gfx::Rect& selection_rect, int active_match_ordinal, | 460 const gfx::Rect& selection_rect, int active_match_ordinal, |
461 bool final_update); | 461 bool final_update); |
462 void OnCrashedPlugin(const FilePath& plugin_path); | 462 void OnCrashedPlugin(const FilePath& plugin_path); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 // Misc non-view stuff ------------------------------------------------------- | 539 // Misc non-view stuff ------------------------------------------------------- |
540 | 540 |
541 // Helper functions for sending notifications. | 541 // Helper functions for sending notifications. |
542 void NotifySwapped(); | 542 void NotifySwapped(); |
543 void NotifyConnected(); | 543 void NotifyConnected(); |
544 void NotifyDisconnected(); | 544 void NotifyDisconnected(); |
545 | 545 |
546 void SetEncoding(const std::string& encoding); | 546 void SetEncoding(const std::string& encoding); |
547 | 547 |
548 // Save a URL to the local filesystem. | 548 // Save a URL to the local filesystem. |
549 void SaveURL(const GURL& url, const GURL& referrer, bool is_main_frame); | 549 void SaveURL(const GURL& url, |
| 550 const content::Referrer& referrer, |
| 551 bool is_main_frame); |
550 | 552 |
551 content::RenderViewHostImpl* GetRenderViewHostImpl(); | 553 content::RenderViewHostImpl* GetRenderViewHostImpl(); |
552 | 554 |
553 // Stores random bits of data for others to associate with this object. | 555 // Stores random bits of data for others to associate with this object. |
554 // WARNING: this needs to be deleted after NavigationController. | 556 // WARNING: this needs to be deleted after NavigationController. |
555 base::PropertyBag property_bag_; | 557 base::PropertyBag property_bag_; |
556 | 558 |
557 // Listen for notifications as well. | 559 // Listen for notifications as well. |
558 content::NotificationRegistrar registrar_; | 560 content::NotificationRegistrar registrar_; |
559 | 561 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 // Our view type. Default is VIEW_TYPE_WEB_CONTENTS. | 707 // Our view type. Default is VIEW_TYPE_WEB_CONTENTS. |
706 content::ViewType view_type_; | 708 content::ViewType view_type_; |
707 | 709 |
708 // Color chooser that was opened by this tab. | 710 // Color chooser that was opened by this tab. |
709 content::ColorChooser* color_chooser_; | 711 content::ColorChooser* color_chooser_; |
710 | 712 |
711 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 713 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
712 }; | 714 }; |
713 | 715 |
714 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 716 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |