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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_guest.h

Issue 610643003: Adds new webview.loadDataWithBaseUrl API to allow data URLs to be loaded with a specified base URL … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment. Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Sets the frame name of the guest. 71 // Sets the frame name of the guest.
72 void SetName(const std::string& name); 72 void SetName(const std::string& name);
73 73
74 // Set the zoom factor. 74 // Set the zoom factor.
75 void SetZoom(double zoom_factor); 75 void SetZoom(double zoom_factor);
76 76
77 // Sets the transparency of the guest. 77 // Sets the transparency of the guest.
78 void SetAllowTransparency(bool allow); 78 void SetAllowTransparency(bool allow);
79 79
80 // Loads a data URL with a specified base URL and virtual URL.
81 bool LoadDataWithBaseURL(const std::string& data_url,
82 const std::string& base_url,
83 const std::string& virtual_url,
84 std::string* error);
85
80 // GuestViewBase implementation. 86 // GuestViewBase implementation.
81 virtual const char* GetAPINamespace() const OVERRIDE; 87 virtual const char* GetAPINamespace() const OVERRIDE;
82 virtual int GetTaskPrefix() const OVERRIDE; 88 virtual int GetTaskPrefix() const OVERRIDE;
83 virtual void CreateWebContents( 89 virtual void CreateWebContents(
84 const std::string& embedder_extension_id, 90 const std::string& embedder_extension_id,
85 int embedder_render_process_id, 91 int embedder_render_process_id,
86 const GURL& embedder_site_url, 92 const GURL& embedder_site_url,
87 const base::DictionaryValue& create_params, 93 const base::DictionaryValue& create_params,
88 const WebContentsCreatedCallback& callback) OVERRIDE; 94 const WebContentsCreatedCallback& callback) OVERRIDE;
89 virtual void DidAttachToEmbedder() OVERRIDE; 95 virtual void DidAttachToEmbedder() OVERRIDE;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 365
360 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; 366 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap;
361 PendingWindowMap pending_new_windows_; 367 PendingWindowMap pending_new_windows_;
362 368
363 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 369 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
364 }; 370 };
365 371
366 } // namespace extensions 372 } // namespace extensions
367 373
368 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 374 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_constants.cc ('k') | extensions/browser/guest_view/web_view/web_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698