| OLD | NEW |
| 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 #include "config.h" | 5 #include "config.h" |
| 6 #include "webkit/glue/webkit_glue.h" | 6 #include "webkit/glue/webkit_glue.h" |
| 7 | 7 |
| 8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
| 9 #include <objidl.h> | 9 #include <objidl.h> |
| 10 #include <mlang.h> | 10 #include <mlang.h> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "webkit/glue/webframe_impl.h" | 49 #include "webkit/glue/webframe_impl.h" |
| 50 #include "webkit/glue/webview_impl.h" | 50 #include "webkit/glue/webview_impl.h" |
| 51 | 51 |
| 52 #include "webkit_version.h" // Generated | 52 #include "webkit_version.h" // Generated |
| 53 | 53 |
| 54 using WebKit::WebCanvas; | 54 using WebKit::WebCanvas; |
| 55 using WebKit::WebFrame; | 55 using WebKit::WebFrame; |
| 56 using WebKit::WebHistoryItem; | 56 using WebKit::WebHistoryItem; |
| 57 using WebKit::WebString; | 57 using WebKit::WebString; |
| 58 using WebKit::WebVector; | 58 using WebKit::WebVector; |
| 59 using WebKit::WebView; |
| 59 | 60 |
| 60 namespace { | 61 namespace { |
| 61 | 62 |
| 62 static const char kLayoutTestsPattern[] = "/LayoutTests/"; | 63 static const char kLayoutTestsPattern[] = "/LayoutTests/"; |
| 63 static const std::string::size_type kLayoutTestsPatternSize = | 64 static const std::string::size_type kLayoutTestsPatternSize = |
| 64 arraysize(kLayoutTestsPattern) - 1; | 65 arraysize(kLayoutTestsPattern) - 1; |
| 65 static const char kFileUrlPattern[] = "file:/"; | 66 static const char kFileUrlPattern[] = "file:/"; |
| 66 static const char kDataUrlPattern[] = "data:"; | 67 static const char kDataUrlPattern[] = "data:"; |
| 67 static const std::string::size_type kDataUrlPatternSize = | 68 static const std::string::size_type kDataUrlPatternSize = |
| 68 arraysize(kDataUrlPattern) - 1; | 69 arraysize(kDataUrlPattern) - 1; |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 | 484 |
| 484 bool IsMediaCacheEnabled() { | 485 bool IsMediaCacheEnabled() { |
| 485 return g_enable_media_cache; | 486 return g_enable_media_cache; |
| 486 } | 487 } |
| 487 | 488 |
| 488 void SetMediaCacheEnabled(bool enabled) { | 489 void SetMediaCacheEnabled(bool enabled) { |
| 489 g_enable_media_cache = enabled; | 490 g_enable_media_cache = enabled; |
| 490 } | 491 } |
| 491 | 492 |
| 492 } // namespace webkit_glue | 493 } // namespace webkit_glue |
| OLD | NEW |