| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 virtual WebContents* Clone() OVERRIDE; | 232 virtual WebContents* Clone() OVERRIDE; |
| 233 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 233 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
| 234 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 234 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| 235 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; | 235 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; |
| 236 virtual void Focus() OVERRIDE; | 236 virtual void Focus() OVERRIDE; |
| 237 virtual void FocusThroughTabTraversal(bool reverse) OVERRIDE; | 237 virtual void FocusThroughTabTraversal(bool reverse) OVERRIDE; |
| 238 virtual bool ShowingInterstitialPage() const OVERRIDE; | 238 virtual bool ShowingInterstitialPage() const OVERRIDE; |
| 239 virtual InterstitialPage* GetInterstitialPage() const OVERRIDE; | 239 virtual InterstitialPage* GetInterstitialPage() const OVERRIDE; |
| 240 virtual bool IsSavable() OVERRIDE; | 240 virtual bool IsSavable() OVERRIDE; |
| 241 virtual void OnSavePage() OVERRIDE; | 241 virtual void OnSavePage() OVERRIDE; |
| 242 virtual bool SavePage(const FilePath& main_file, | 242 virtual bool SavePage(const base::FilePath& main_file, |
| 243 const FilePath& dir_path, | 243 const base::FilePath& dir_path, |
| 244 SavePageType save_type) OVERRIDE; | 244 SavePageType save_type) OVERRIDE; |
| 245 virtual void GenerateMHTML( | 245 virtual void GenerateMHTML( |
| 246 const FilePath& file, | 246 const base::FilePath& file, |
| 247 const base::Callback<void(const FilePath&, int64)>& callback) OVERRIDE; | 247 const base::Callback<void(const base::FilePath&, int64)>& callback) |
| 248 OVERRIDE; |
| 248 virtual bool IsActiveEntry(int32 page_id) OVERRIDE; | 249 virtual bool IsActiveEntry(int32 page_id) OVERRIDE; |
| 249 | 250 |
| 250 virtual const std::string& GetContentsMimeType() const OVERRIDE; | 251 virtual const std::string& GetContentsMimeType() const OVERRIDE; |
| 251 virtual bool WillNotifyDisconnection() const OVERRIDE; | 252 virtual bool WillNotifyDisconnection() const OVERRIDE; |
| 252 virtual void SetOverrideEncoding(const std::string& encoding) OVERRIDE; | 253 virtual void SetOverrideEncoding(const std::string& encoding) OVERRIDE; |
| 253 virtual void ResetOverrideEncoding() OVERRIDE; | 254 virtual void ResetOverrideEncoding() OVERRIDE; |
| 254 virtual RendererPreferences* GetMutableRendererPrefs() OVERRIDE; | 255 virtual RendererPreferences* GetMutableRendererPrefs() OVERRIDE; |
| 255 virtual void SetNewTabStartTime(const base::TimeTicks& time) OVERRIDE; | 256 virtual void SetNewTabStartTime(const base::TimeTicks& time) OVERRIDE; |
| 256 virtual base::TimeTicks GetNewTabStartTime() const OVERRIDE; | 257 virtual base::TimeTicks GetNewTabStartTime() const OVERRIDE; |
| 257 virtual void Close() OVERRIDE; | 258 virtual void Close() OVERRIDE; |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 const GURL& url, | 536 const GURL& url, |
| 536 bool is_main_frame, | 537 bool is_main_frame, |
| 537 int error_code, | 538 int error_code, |
| 538 const string16& error_description); | 539 const string16& error_description); |
| 539 void OnUpdateContentRestrictions(int restrictions); | 540 void OnUpdateContentRestrictions(int restrictions); |
| 540 void OnGoToEntryAtOffset(int offset); | 541 void OnGoToEntryAtOffset(int offset); |
| 541 void OnUpdateZoomLimits(int minimum_percent, | 542 void OnUpdateZoomLimits(int minimum_percent, |
| 542 int maximum_percent, | 543 int maximum_percent, |
| 543 bool remember); | 544 bool remember); |
| 544 void OnSaveURL(const GURL& url, const Referrer& referrer); | 545 void OnSaveURL(const GURL& url, const Referrer& referrer); |
| 545 void OnEnumerateDirectory(int request_id, const FilePath& path); | 546 void OnEnumerateDirectory(int request_id, const base::FilePath& path); |
| 546 void OnJSOutOfMemory(); | 547 void OnJSOutOfMemory(); |
| 547 | 548 |
| 548 void OnRegisterProtocolHandler(const std::string& protocol, | 549 void OnRegisterProtocolHandler(const std::string& protocol, |
| 549 const GURL& url, | 550 const GURL& url, |
| 550 const string16& title, | 551 const string16& title, |
| 551 bool user_gesture); | 552 bool user_gesture); |
| 552 void OnFindReply(int request_id, | 553 void OnFindReply(int request_id, |
| 553 int number_of_matches, | 554 int number_of_matches, |
| 554 const gfx::Rect& selection_rect, | 555 const gfx::Rect& selection_rect, |
| 555 int active_match_ordinal, | 556 int active_match_ordinal, |
| 556 bool final_update); | 557 bool final_update); |
| 557 #if defined(OS_ANDROID) | 558 #if defined(OS_ANDROID) |
| 558 void OnFindMatchRectsReply(int version, | 559 void OnFindMatchRectsReply(int version, |
| 559 const std::vector<gfx::RectF>& rects, | 560 const std::vector<gfx::RectF>& rects, |
| 560 const gfx::RectF& active_rect); | 561 const gfx::RectF& active_rect); |
| 561 | 562 |
| 562 void OnOpenDateTimeDialog(int type, const std::string& value); | 563 void OnOpenDateTimeDialog(int type, const std::string& value); |
| 563 #endif | 564 #endif |
| 564 void OnCrashedPlugin(const FilePath& plugin_path, base::ProcessId plugin_pid); | 565 void OnCrashedPlugin(const base::FilePath& plugin_path, |
| 566 base::ProcessId plugin_pid); |
| 565 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 567 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
| 566 void OnOpenColorChooser(int color_chooser_id, SkColor color); | 568 void OnOpenColorChooser(int color_chooser_id, SkColor color); |
| 567 void OnEndColorChooser(int color_chooser_id); | 569 void OnEndColorChooser(int color_chooser_id); |
| 568 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 570 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
| 569 void OnPepperPluginHung(int plugin_child_id, | 571 void OnPepperPluginHung(int plugin_child_id, |
| 570 const FilePath& path, | 572 const base::FilePath& path, |
| 571 bool is_hung); | 573 bool is_hung); |
| 572 void OnWebUISend(const GURL& source_url, | 574 void OnWebUISend(const GURL& source_url, |
| 573 const std::string& name, | 575 const std::string& name, |
| 574 const base::ListValue& args); | 576 const base::ListValue& args); |
| 575 void OnRequestPpapiBrokerPermission(int request_id, | 577 void OnRequestPpapiBrokerPermission(int request_id, |
| 576 const GURL& url, | 578 const GURL& url, |
| 577 const FilePath& plugin_path); | 579 const base::FilePath& plugin_path); |
| 578 void OnBrowserPluginAllocateInstanceID(const IPC::Message& message, | 580 void OnBrowserPluginAllocateInstanceID(const IPC::Message& message, |
| 579 int request_id); | 581 int request_id); |
| 580 void OnDidDownloadFavicon(int id, | 582 void OnDidDownloadFavicon(int id, |
| 581 const GURL& image_url, | 583 const GURL& image_url, |
| 582 int requested_size, | 584 int requested_size, |
| 583 const std::vector<SkBitmap>& bitmaps); | 585 const std::vector<SkBitmap>& bitmaps); |
| 584 void OnUpdateFaviconURL(int32 page_id, | 586 void OnUpdateFaviconURL(int32 page_id, |
| 585 const std::vector<FaviconURL>& candidates); | 587 const std::vector<FaviconURL>& candidates); |
| 586 void OnFrameDetached(int64 frame_id); | 588 void OnFrameDetached(int64 frame_id); |
| 587 | 589 |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 // Maps the ids of pending favicon downloads to their callbacks | 892 // Maps the ids of pending favicon downloads to their callbacks |
| 891 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; | 893 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; |
| 892 FaviconDownloadMap favicon_download_map_; | 894 FaviconDownloadMap favicon_download_map_; |
| 893 | 895 |
| 894 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 896 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 895 }; | 897 }; |
| 896 | 898 |
| 897 } // namespace content | 899 } // namespace content |
| 898 | 900 |
| 899 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 901 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |