Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 22300003: Move broker creation out of PepperHelperImpl to PPB_Broker_Impl in the effort to eliminate PepperHe… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 void RemoveDestructionObserver(WebContentsImpl* web_contents); 547 void RemoveDestructionObserver(WebContentsImpl* web_contents);
548 548
549 // Callback function when showing JS dialogs. 549 // Callback function when showing JS dialogs.
550 void OnDialogClosed(RenderViewHost* rvh, 550 void OnDialogClosed(RenderViewHost* rvh,
551 IPC::Message* reply_msg, 551 IPC::Message* reply_msg,
552 bool success, 552 bool success,
553 const string16& user_input); 553 const string16& user_input);
554 554
555 // Callback function when requesting permission to access the PPAPI broker. 555 // Callback function when requesting permission to access the PPAPI broker.
556 // |result| is true if permission was granted. 556 // |result| is true if permission was granted.
557 void OnPpapiBrokerPermissionResult(int request_id, bool result); 557 void OnPpapiBrokerPermissionResult(int routing_id, bool result);
558 558
559 // IPC message handlers. 559 // IPC message handlers.
560 void OnDidLoadResourceFromMemoryCache(const GURL& url, 560 void OnDidLoadResourceFromMemoryCache(const GURL& url,
561 const std::string& security_info, 561 const std::string& security_info,
562 const std::string& http_request, 562 const std::string& http_request,
563 const std::string& mime_type, 563 const std::string& mime_type,
564 ResourceType::Type resource_type); 564 ResourceType::Type resource_type);
565 void OnDidDisplayInsecureContent(); 565 void OnDidDisplayInsecureContent();
566 void OnDidRunInsecureContent(const std::string& security_origin, 566 void OnDidRunInsecureContent(const std::string& security_origin,
567 const GURL& target_url); 567 const GURL& target_url);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); 604 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy);
605 void OnOpenColorChooser(int color_chooser_id, SkColor color); 605 void OnOpenColorChooser(int color_chooser_id, SkColor color);
606 void OnEndColorChooser(int color_chooser_id); 606 void OnEndColorChooser(int color_chooser_id);
607 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); 607 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color);
608 void OnPepperPluginHung(int plugin_child_id, 608 void OnPepperPluginHung(int plugin_child_id,
609 const base::FilePath& path, 609 const base::FilePath& path,
610 bool is_hung); 610 bool is_hung);
611 void OnWebUISend(const GURL& source_url, 611 void OnWebUISend(const GURL& source_url,
612 const std::string& name, 612 const std::string& name,
613 const base::ListValue& args); 613 const base::ListValue& args);
614 void OnRequestPpapiBrokerPermission(int request_id, 614 void OnRequestPpapiBrokerPermission(int routing_id,
615 const GURL& url, 615 const GURL& url,
616 const base::FilePath& plugin_path); 616 const base::FilePath& plugin_path);
617 void OnBrowserPluginMessage(const IPC::Message& message); 617 void OnBrowserPluginMessage(const IPC::Message& message);
618 void OnDidDownloadImage(int id, 618 void OnDidDownloadImage(int id,
619 int http_status_code, 619 int http_status_code,
620 const GURL& image_url, 620 const GURL& image_url,
621 int requested_size, 621 int requested_size,
622 const std::vector<SkBitmap>& bitmaps); 622 const std::vector<SkBitmap>& bitmaps);
623 void OnUpdateFaviconURL(int32 page_id, 623 void OnUpdateFaviconURL(int32 page_id,
624 const std::vector<FaviconURL>& candidates); 624 const std::vector<FaviconURL>& candidates);
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 // Maps the ids of pending image downloads to their callbacks 954 // Maps the ids of pending image downloads to their callbacks
955 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 955 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
956 ImageDownloadMap image_download_map_; 956 ImageDownloadMap image_download_map_;
957 957
958 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 958 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
959 }; 959 };
960 960
961 } // namespace content 961 } // namespace content
962 962
963 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 963 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698