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

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: Fix indentation. Created 8 years, 8 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool worker) OVERRIDE; 131 bool worker) OVERRIDE;
132 virtual void CancelDesktopNotification( 132 virtual void CancelDesktopNotification(
133 int render_process_id, 133 int render_process_id,
134 int render_view_id, 134 int render_view_id,
135 int notification_id) OVERRIDE; 135 int notification_id) OVERRIDE;
136 virtual bool CanCreateWindow( 136 virtual bool CanCreateWindow(
137 const GURL& opener_url, 137 const GURL& opener_url,
138 const GURL& source_origin, 138 const GURL& source_origin,
139 WindowContainerType container_type, 139 WindowContainerType container_type,
140 ResourceContext* context, 140 ResourceContext* context,
141 int render_process_id) OVERRIDE; 141 int render_process_id,
142 bool* no_javascript_access) OVERRIDE;
142 virtual std::string GetWorkerProcessTitle(const GURL& url, 143 virtual std::string GetWorkerProcessTitle(const GURL& url,
143 ResourceContext* context) OVERRIDE; 144 ResourceContext* context) OVERRIDE;
144 virtual void ResourceDispatcherHostCreated() OVERRIDE; 145 virtual void ResourceDispatcherHostCreated() OVERRIDE;
145 virtual SpeechRecognitionManagerDelegate* 146 virtual SpeechRecognitionManagerDelegate*
146 GetSpeechRecognitionManagerDelegate() OVERRIDE; 147 GetSpeechRecognitionManagerDelegate() OVERRIDE;
147 virtual ui::Clipboard* GetClipboard() OVERRIDE; 148 virtual ui::Clipboard* GetClipboard() OVERRIDE;
148 virtual net::NetLog* GetNetLog() OVERRIDE; 149 virtual net::NetLog* GetNetLog() OVERRIDE;
149 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; 150 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE;
150 virtual bool IsFastShutdownPossible() OVERRIDE; 151 virtual bool IsFastShutdownPossible() OVERRIDE;
151 virtual void OverrideWebkitPrefs(RenderViewHost* rvh, 152 virtual void OverrideWebkitPrefs(RenderViewHost* rvh,
(...skipping 28 matching lines...) Expand all
180 private: 181 private:
181 // Temporary directory for GetDefaultDownloadDirectory. 182 // Temporary directory for GetDefaultDownloadDirectory.
182 ScopedTempDir download_dir_; 183 ScopedTempDir download_dir_;
183 184
184 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); 185 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient);
185 }; 186 };
186 187
187 } // namespace content 188 } // namespace content
188 189
189 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ 190 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698