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

Side by Side Diff: content/public/browser/browser_plugin_guest_delegate.h

Issue 27408004: <webview>: Resolve relative paths as chrome-extension: URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't update src attribute with resolved URL. Created 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Request permission from the delegate to perform an action of the provided 72 // Request permission from the delegate to perform an action of the provided
73 // |permission_type|. Details of the permission request are found in 73 // |permission_type|. Details of the permission request are found in
74 // |request_info|. A |callback| is provided to make the decision. 74 // |request_info|. A |callback| is provided to make the decision.
75 // Returns whether the delegate has, or will handle the permission request. 75 // Returns whether the delegate has, or will handle the permission request.
76 virtual bool RequestPermission( 76 virtual bool RequestPermission(
77 BrowserPluginPermissionType permission_type, 77 BrowserPluginPermissionType permission_type,
78 const base::DictionaryValue& request_info, 78 const base::DictionaryValue& request_info,
79 const PermissionResponseCallback& callback, 79 const PermissionResponseCallback& callback,
80 bool allowed_by_default); 80 bool allowed_by_default);
81 81
82 // Requests resolution of a potentially relative URL.
83 virtual GURL ResolveURL(const std::string& src);
84
82 // Notifies that the content size of the guest has changed in autosize mode. 85 // Notifies that the content size of the guest has changed in autosize mode.
83 virtual void SizeChanged(const gfx::Size& old_size, 86 virtual void SizeChanged(const gfx::Size& old_size,
84 const gfx::Size& new_size) {} 87 const gfx::Size& new_size) {}
85 }; 88 };
86 89
87 } // namespace content 90 } // namespace content
88 91
89 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 92 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698