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

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

Issue 233093006: Stop disabling force_compositing_mode for background RenderViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: background: test Created 6 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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 513
514 // Getters for common objects. 514 // Getters for common objects.
515 virtual net::NetLog* GetNetLog(); 515 virtual net::NetLog* GetNetLog();
516 516
517 // Creates a new AccessTokenStore for gelocation. 517 // Creates a new AccessTokenStore for gelocation.
518 virtual AccessTokenStore* CreateAccessTokenStore(); 518 virtual AccessTokenStore* CreateAccessTokenStore();
519 519
520 // Returns true if fast shutdown is possible. 520 // Returns true if fast shutdown is possible.
521 virtual bool IsFastShutdownPossible(); 521 virtual bool IsFastShutdownPossible();
522 522
523 // Returns true if the view runs in the background and is never visible.
524 virtual bool IsRenderViewHostForBackground(RenderViewHost* render_view_host);
jam 2014/04/10 20:27:48 nit: content doesn't know about "background" conce
danakj 2014/04/10 20:37:12 Done.
525
523 // Called by WebContents to override the WebKit preferences that are used by 526 // Called by WebContents to override the WebKit preferences that are used by
524 // the renderer. The content layer will add its own settings, and then it's up 527 // the renderer. The content layer will add its own settings, and then it's up
525 // to the embedder to update it if it wants. 528 // to the embedder to update it if it wants.
526 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, 529 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host,
527 const GURL& url, 530 const GURL& url,
528 WebPreferences* prefs) {} 531 WebPreferences* prefs) {}
529 532
530 // Inspector setting was changed and should be persisted. 533 // Inspector setting was changed and should be persisted.
531 virtual void UpdateInspectorSetting(RenderViewHost* rvh, 534 virtual void UpdateInspectorSetting(RenderViewHost* rvh,
532 const std::string& key, 535 const std::string& key,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 // Returns a special cookie store to use for a given render process, or NULL 646 // Returns a special cookie store to use for a given render process, or NULL
644 // if the default cookie store should be used 647 // if the default cookie store should be used
645 // This is called on the IO thread. 648 // This is called on the IO thread.
646 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( 649 virtual net::CookieStore* OverrideCookieStoreForRenderProcess(
647 int render_process_id_); 650 int render_process_id_);
648 }; 651 };
649 652
650 } // namespace content 653 } // namespace content
651 654
652 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 655 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698