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

Side by Side Diff: sky/viewer/platform/platform_impl.cc

Issue 752463002: Remove unused WebMIMERegistry (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/viewer/platform/platform_impl.h ('k') | sky/viewer/platform/webmimeregistry_impl.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "sky/viewer/platform/platform_impl.h" 5 #include "sky/viewer/platform/platform_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 shared_timer_suspended_(0) { 51 shared_timer_suspended_(0) {
52 app->ConnectToService("mojo:network_service", &network_service_); 52 app->ConnectToService("mojo:network_service", &network_service_);
53 53
54 mojo::CookieStorePtr cookie_store; 54 mojo::CookieStorePtr cookie_store;
55 network_service_->GetCookieStore(GetProxy(&cookie_store)); 55 network_service_->GetCookieStore(GetProxy(&cookie_store));
56 } 56 }
57 57
58 PlatformImpl::~PlatformImpl() { 58 PlatformImpl::~PlatformImpl() {
59 } 59 }
60 60
61 blink::WebMimeRegistry* PlatformImpl::mimeRegistry() {
62 return &mime_registry_;
63 }
64
65 blink::WebThemeEngine* PlatformImpl::themeEngine() { 61 blink::WebThemeEngine* PlatformImpl::themeEngine() {
66 return &theme_engine_; 62 return &theme_engine_;
67 } 63 }
68 64
69 blink::WebString PlatformImpl::defaultLocale() { 65 blink::WebString PlatformImpl::defaultLocale() {
70 return blink::WebString::fromUTF8("en-US"); 66 return blink::WebString::fromUTF8("en-US");
71 } 67 }
72 68
73 double PlatformImpl::currentTime() { 69 double PlatformImpl::currentTime() {
74 return base::Time::Now().ToDoubleT(); 70 return base::Time::Now().ToDoubleT();
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 else 252 else
257 CHECK(false); 253 CHECK(false);
258 254
259 std::string buffer; 255 std::string buffer;
260 base::ReadFileToString(path, &buffer); 256 base::ReadFileToString(path, &buffer);
261 CHECK(!buffer.empty()); 257 CHECK(!buffer.empty());
262 return blink::WebData(buffer.data(), buffer.size()); 258 return blink::WebData(buffer.data(), buffer.size());
263 } 259 }
264 260
265 } // namespace sky 261 } // namespace sky
OLDNEW
« no previous file with comments | « sky/viewer/platform/platform_impl.h ('k') | sky/viewer/platform/webmimeregistry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698