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

Side by Side Diff: sky/engine/public/platform/Platform.h

Issue 1230113006: Remove last use of Platform::networkService() (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « services/sky/document_view.cc ('k') | sky/shell/shell.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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 #include "sky/engine/public/platform/WebLocalizedString.h" 38 #include "sky/engine/public/platform/WebLocalizedString.h"
39 #include "sky/engine/public/platform/WebString.h" 39 #include "sky/engine/public/platform/WebString.h"
40 #include "sky/engine/public/platform/WebVector.h" 40 #include "sky/engine/public/platform/WebVector.h"
41 41
42 class GrContext; 42 class GrContext;
43 43
44 namespace base { 44 namespace base {
45 class SingleThreadTaskRunner; 45 class SingleThreadTaskRunner;
46 } 46 }
47 47
48 namespace mojo {
49 class NetworkService;
50 }
51
52 namespace blink { 48 namespace blink {
53 49
54 class WebBlobRegistry; 50 class WebBlobRegistry;
55 class WebClipboard; 51 class WebClipboard;
56 class WebDiscardableMemory; 52 class WebDiscardableMemory;
57 class WebFallbackThemeEngine; 53 class WebFallbackThemeEngine;
58 class WebGraphicsContext3DProvider; 54 class WebGraphicsContext3DProvider;
59 class WebSandboxSupport; 55 class WebSandboxSupport;
60 struct WebFloatPoint; 56 struct WebFloatPoint;
61 class WebURL; 57 class WebURL;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 virtual void dumpHeapProfiling(const WebString& /*reason*/) { } 134 virtual void dumpHeapProfiling(const WebString& /*reason*/) { }
139 // A wrapper for tcmalloc's GetHeapProfile() 135 // A wrapper for tcmalloc's GetHeapProfile()
140 virtual WebString getHeapProfile() { return WebString(); } 136 virtual WebString getHeapProfile() { return WebString(); }
141 137
142 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); 138 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1);
143 139
144 // Returns the maximum amount of memory a decoded image should be allowed. 140 // Returns the maximum amount of memory a decoded image should be allowed.
145 // See comments on ImageDecoder::m_maxDecodedBytes. 141 // See comments on ImageDecoder::m_maxDecodedBytes.
146 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } 142 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; }
147 143
148 // Network -------------------------------------------------------------
149
150 virtual mojo::NetworkService* networkService() { return 0; }
151
152 // A suggestion to cache this metadata in association with this URL.
153 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
154
155 // Resources ----------------------------------------------------------- 144 // Resources -----------------------------------------------------------
156 145
157 // Returns a localized string resource (with substitution parameters). 146 // Returns a localized string resource (with substitution parameters).
158 virtual WebString queryLocalizedString(WebLocalizedString::Name) { return We bString(); } 147 virtual WebString queryLocalizedString(WebLocalizedString::Name) { return We bString(); }
159 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt ring& parameter) { return WebString(); } 148 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt ring& parameter) { return WebString(); }
160 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt ring& parameter1, const WebString& parameter2) { return WebString(); } 149 virtual WebString queryLocalizedString(WebLocalizedString::Name, const WebSt ring& parameter1, const WebString& parameter2) { return WebString(); }
161 150
162 151
163 // Profiling ----------------------------------------------------------- 152 // Profiling -----------------------------------------------------------
164 153
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // This value must be checked again after a context loss event as the platfo rm's capabilities may have changed. 220 // This value must be checked again after a context loss event as the platfo rm's capabilities may have changed.
232 virtual bool canAccelerate2dCanvas() { return false; } 221 virtual bool canAccelerate2dCanvas() { return false; }
233 222
234 protected: 223 protected:
235 virtual ~Platform() { } 224 virtual ~Platform() { }
236 }; 225 };
237 226
238 } // namespace blink 227 } // namespace blink
239 228
240 #endif // SKY_ENGINE_PUBLIC_PLATFORM_PLATFORM_H_ 229 #endif // SKY_ENGINE_PUBLIC_PLATFORM_PLATFORM_H_
OLDNEW
« no previous file with comments | « services/sky/document_view.cc ('k') | sky/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698