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

Side by Side Diff: content/browser/mock_content_browser_client.h

Issue 9837074: Make it so that allow_js_access: false can be used with background pages created by window.open. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revised approach based on http://crrev.com/125180. Created 8 years, 9 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_MOCK_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 int render_process_id) OVERRIDE; 125 int render_process_id) OVERRIDE;
126 virtual void ShowDesktopNotification( 126 virtual void ShowDesktopNotification(
127 const content::ShowDesktopNotificationHostMsgParams& params, 127 const content::ShowDesktopNotificationHostMsgParams& params,
128 int render_process_id, 128 int render_process_id,
129 int render_view_id, 129 int render_view_id,
130 bool worker) OVERRIDE; 130 bool worker) OVERRIDE;
131 virtual void CancelDesktopNotification( 131 virtual void CancelDesktopNotification(
132 int render_process_id, 132 int render_process_id,
133 int render_view_id, 133 int render_view_id,
134 int notification_id) OVERRIDE; 134 int notification_id) OVERRIDE;
135 virtual bool CanCreateWindow( 135 virtual CanCreateWindowResult CanCreateWindow(
136 const GURL& opener_url, 136 const GURL& opener_url,
137 const GURL& source_origin, 137 const GURL& source_origin,
138 WindowContainerType container_type, 138 WindowContainerType container_type,
139 ResourceContext* context, 139 ResourceContext* context,
140 int render_process_id) OVERRIDE; 140 int render_process_id) OVERRIDE;
141 virtual std::string GetWorkerProcessTitle(const GURL& url, 141 virtual std::string GetWorkerProcessTitle(const GURL& url,
142 ResourceContext* context) OVERRIDE; 142 ResourceContext* context) OVERRIDE;
143 virtual void ResourceDispatcherHostCreated() OVERRIDE; 143 virtual void ResourceDispatcherHostCreated() OVERRIDE;
144 virtual SpeechRecognitionManagerDelegate* 144 virtual SpeechRecognitionManagerDelegate*
145 GetSpeechRecognitionManagerDelegate() OVERRIDE; 145 GetSpeechRecognitionManagerDelegate() OVERRIDE;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 private: 179 private:
180 // Temporary directory for GetDefaultDownloadDirectory. 180 // Temporary directory for GetDefaultDownloadDirectory.
181 ScopedTempDir download_dir_; 181 ScopedTempDir download_dir_;
182 182
183 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); 183 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient);
184 }; 184 };
185 185
186 } // namespace content 186 } // namespace content
187 187
188 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 188 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698