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

Side by Side Diff: content/public/browser/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_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 int render_view_id, 329 int render_view_id,
330 bool worker) = 0; 330 bool worker) = 0;
331 331
332 // Cancels a displayed desktop notification. 332 // Cancels a displayed desktop notification.
333 virtual void CancelDesktopNotification( 333 virtual void CancelDesktopNotification(
334 int render_process_id, 334 int render_process_id,
335 int render_view_id, 335 int render_view_id,
336 int notification_id) = 0; 336 int notification_id) = 0;
337 337
338 // Returns true if the given page is allowed to open a window of the given 338 // Returns true if the given page is allowed to open a window of the given
339 // type. 339 // type. If true is returned, |no_javascript_access| will indicate whether
340 // the window that is created should be scriptable/in the same process.
340 // This is called on the IO thread. 341 // This is called on the IO thread.
341 virtual bool CanCreateWindow( 342 virtual bool CanCreateWindow(
342 const GURL& opener_url, 343 const GURL& opener_url,
343 const GURL& source_origin, 344 const GURL& source_origin,
344 WindowContainerType container_type, 345 WindowContainerType container_type,
345 content::ResourceContext* context, 346 content::ResourceContext* context,
346 int render_process_id) = 0; 347 int render_process_id,
348 bool* no_javascript_access) = 0;
347 349
348 // Returns a title string to use in the task manager for a process host with 350 // Returns a title string to use in the task manager for a process host with
349 // the given URL, or the empty string to fall back to the default logic. 351 // the given URL, or the empty string to fall back to the default logic.
350 // This is called on the IO thread. 352 // This is called on the IO thread.
351 virtual std::string GetWorkerProcessTitle( 353 virtual std::string GetWorkerProcessTitle(
352 const GURL& url, content::ResourceContext* context) = 0; 354 const GURL& url, content::ResourceContext* context) = 0;
353 355
354 // Notifies the embedder that the ResourceDispatcherHost has been created. 356 // Notifies the embedder that the ResourceDispatcherHost has been created.
355 // This is when it can optionally add a delegate or ResourceQueueDelegates. 357 // This is when it can optionally add a delegate or ResourceQueueDelegates.
356 virtual void ResourceDispatcherHostCreated() = 0; 358 virtual void ResourceDispatcherHostCreated() = 0;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 // This is called on a worker thread. 425 // This is called on a worker thread.
424 virtual 426 virtual
425 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 427 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
426 const GURL& url) = 0; 428 const GURL& url) = 0;
427 #endif 429 #endif
428 }; 430 };
429 431
430 } // namespace content 432 } // namespace content
431 433
432 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 434 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents_view_helper.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698