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

Side by Side Diff: webkit/glue/webkit_glue.h

Issue 253001: <video> use cache if --enable-byte-range-support is present (Closed)
Patch Set: updated Created 11 years, 2 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
« no previous file with comments | « webkit/glue/media/buffered_data_source.cc ('k') | webkit/glue/webkit_glue.cc » ('j') | 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 WEBKIT_GLUE_WEBKIT_GLUE_H_ 5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_
6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 WebKit::WebString FilePathToWebString(const FilePath& file_path); 115 WebKit::WebString FilePathToWebString(const FilePath& file_path);
116 116
117 // Returns a WebCanvas pointer associated with the given Skia canvas. 117 // Returns a WebCanvas pointer associated with the given Skia canvas.
118 WebKit::WebCanvas* ToWebCanvas(skia::PlatformCanvas*); 118 WebKit::WebCanvas* ToWebCanvas(skia::PlatformCanvas*);
119 119
120 // Returns the number of currently-active glyph pages this process is using. 120 // Returns the number of currently-active glyph pages this process is using.
121 // There can be many such pages (maps of 256 character -> glyph) so this is 121 // There can be many such pages (maps of 256 character -> glyph) so this is
122 // used to get memory usage statistics. 122 // used to get memory usage statistics.
123 int GetGlyphPageCount(); 123 int GetGlyphPageCount();
124 124
125 // Methods to query and enable media cache.
126 // TODO(hclam): Remove these methods when the cache is stable enough.
127 bool IsMediaCacheEnabled();
128 void SetMediaCacheEnabled();
scherkus (not reviewing) 2009/09/30 02:47:11 + bool enabled
129
125 //---- END FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ------------------------------- 130 //---- END FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE -------------------------------
126 131
127 132
128 //---- BEGIN FUNCTIONS IMPLEMENTED BY EMBEDDER -------------------------------- 133 //---- BEGIN FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------
129 134
130 // This function is called to request a prefetch of the entire URL, loading it 135 // This function is called to request a prefetch of the entire URL, loading it
131 // into our cache for (expected) future needs. The given URL may NOT be in 136 // into our cache for (expected) future needs. The given URL may NOT be in
132 // canonical form and it will NOT be null-terminated; use the length instead. 137 // canonical form and it will NOT be null-terminated; use the length instead.
133 void PrecacheUrl(const char16* url, int url_length); 138 void PrecacheUrl(const char16* url, int url_length);
134 139
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 232
228 // Enable or disable the disk cache. Used for debugging. 233 // Enable or disable the disk cache. Used for debugging.
229 void SetCacheMode(bool enabled); 234 void SetCacheMode(bool enabled);
230 235
231 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- 236 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER ---------------------------------
232 237
233 238
234 } // namespace webkit_glue 239 } // namespace webkit_glue
235 240
236 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ 241 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_
OLDNEW
« no previous file with comments | « webkit/glue/media/buffered_data_source.cc ('k') | webkit/glue/webkit_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698