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

Side by Side Diff: webkit/support/webkit_support.cc

Issue 6532012: Set the minimum timer interval on a per-page basis, and adjust it when... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
« no previous file with comments | « webkit/support/webkit_support.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "webkit/support/webkit_support.h" 5 #include "webkit/support/webkit_support.h"
6 6
7 #include "app/gfx/gl/gl_context.h" 7 #include "app/gfx/gl/gl_context.h"
8 #include "app/gfx/gl/gl_implementation.h" 8 #include "app/gfx/gl/gl_implementation.h"
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 19 matching lines...) Expand all
30 #include "net/base/escape.h" 30 #include "net/base/escape.h"
31 #include "net/base/net_errors.h" 31 #include "net/base/net_errors.h"
32 #include "net/base/net_util.h" 32 #include "net/base/net_util.h"
33 #include "testing/gtest/include/gtest/gtest.h" 33 #include "testing/gtest/include/gtest/gtest.h"
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h" 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h"
38 #include "webkit/appcache/web_application_cache_host_impl.h" 38 #include "webkit/appcache/web_application_cache_host_impl.h"
39 #include "webkit/glue/media/video_renderer_impl.h" 39 #include "webkit/glue/media/video_renderer_impl.h"
40 #include "webkit/glue/webkit_constants.h"
40 #include "webkit/glue/webkit_glue.h" 41 #include "webkit/glue/webkit_glue.h"
41 #include "webkit/glue/webkitclient_impl.h" 42 #include "webkit/glue/webkitclient_impl.h"
42 #include "webkit/glue/webmediaplayer_impl.h" 43 #include "webkit/glue/webmediaplayer_impl.h"
43 #include "webkit/plugins/npapi/plugin_list.h" 44 #include "webkit/plugins/npapi/plugin_list.h"
44 #include "webkit/plugins/npapi/webplugin_impl.h" 45 #include "webkit/plugins/npapi/webplugin_impl.h"
45 #include "webkit/plugins/npapi/webplugin_page_delegate.h" 46 #include "webkit/plugins/npapi/webplugin_page_delegate.h"
46 #include "webkit/plugins/npapi/webplugininfo.h" 47 #include "webkit/plugins/npapi/webplugininfo.h"
47 #include "webkit/support/platform_support.h" 48 #include "webkit/support/platform_support.h"
48 #include "webkit/support/test_webplugin_page_delegate.h" 49 #include "webkit/support/test_webplugin_page_delegate.h"
49 #include "webkit/support/test_webkit_client.h" 50 #include "webkit/support/test_webkit_client.h"
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 } 542 }
542 543
543 // FileSystem 544 // FileSystem
544 void OpenFileSystem(WebFrame* frame, WebFileSystem::Type type, 545 void OpenFileSystem(WebFrame* frame, WebFileSystem::Type type,
545 long long size, bool create, WebFileSystemCallbacks* callbacks) { 546 long long size, bool create, WebFileSystemCallbacks* callbacks) {
546 SimpleFileSystem* fileSystem = static_cast<SimpleFileSystem*>( 547 SimpleFileSystem* fileSystem = static_cast<SimpleFileSystem*>(
547 test_environment->webkit_client()->fileSystem()); 548 test_environment->webkit_client()->fileSystem());
548 fileSystem->OpenFileSystem(frame, type, size, create, callbacks); 549 fileSystem->OpenFileSystem(frame, type, size, create, callbacks);
549 } 550 }
550 551
552 // Timers
553 double GetForegroundTabTimerInterval() {
554 return webkit_glue::kForegroundTabTimerInterval;
555 }
556
551 } // namespace webkit_support 557 } // namespace webkit_support
OLDNEW
« no previous file with comments | « webkit/support/webkit_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698