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

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

Issue 678683004: HTMLImportLoader should talk directly to mojo::NetworkService (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address reviewer comments 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/engine/platform/fetcher/MojoFetcher.cpp ('k') | sky/engine/wtf/text/CString.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 /* 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 29 matching lines...) Expand all
40 #include "WebGestureDevice.h" 40 #include "WebGestureDevice.h"
41 #include "WebGraphicsContext3D.h" 41 #include "WebGraphicsContext3D.h"
42 #include "WebLocalizedString.h" 42 #include "WebLocalizedString.h"
43 #include "WebPlatformEventType.h" 43 #include "WebPlatformEventType.h"
44 #include "WebString.h" 44 #include "WebString.h"
45 #include "WebURLError.h" 45 #include "WebURLError.h"
46 #include "WebVector.h" 46 #include "WebVector.h"
47 47
48 class GrContext; 48 class GrContext;
49 49
50 namespace mojo {
51 class NetworkService;
52 }
53
50 namespace blink { 54 namespace blink {
51 55
52 class WebBlobRegistry; 56 class WebBlobRegistry;
53 class WebClipboard; 57 class WebClipboard;
54 class WebCompositorSupport; 58 class WebCompositorSupport;
55 class WebConvertableToTraceFormat; 59 class WebConvertableToTraceFormat;
56 class WebDiscardableMemory; 60 class WebDiscardableMemory;
57 class WebPlatformEventListener; 61 class WebPlatformEventListener;
58 class WebFallbackThemeEngine; 62 class WebFallbackThemeEngine;
59 class WebFlingAnimator; 63 class WebFlingAnimator;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 virtual WebString getHeapProfile() { return WebString(); } 166 virtual WebString getHeapProfile() { return WebString(); }
163 167
164 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); 168 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1);
165 169
166 // Returns the maximum amount of memory a decoded image should be allowed. 170 // Returns the maximum amount of memory a decoded image should be allowed.
167 // See comments on ImageDecoder::m_maxDecodedBytes. 171 // See comments on ImageDecoder::m_maxDecodedBytes.
168 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } 172 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; }
169 173
170 // Network ------------------------------------------------------------- 174 // Network -------------------------------------------------------------
171 175
176 virtual mojo::NetworkService* networkService() { return 0; }
177
172 // Returns a new WebURLLoader instance. 178 // Returns a new WebURLLoader instance.
173 virtual WebURLLoader* createURLLoader() { return 0; } 179 virtual WebURLLoader* createURLLoader() { return 0; }
174 180
175 // A suggestion to cache this metadata in association with this URL. 181 // A suggestion to cache this metadata in association with this URL.
176 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { } 182 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
177 183
178 // Returns the decoded data url if url had a supported mimetype and parsing was successful. 184 // Returns the decoded data url if url had a supported mimetype and parsing was successful.
179 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); } 185 virtual WebData parseDataURL(const WebURL&, WebString& mimetype, WebString& charset) { return WebData(); }
180 186
181 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); } 187 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); }
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // longer notify the listener, if any. 431 // longer notify the listener, if any.
426 virtual void stopListening(WebPlatformEventType type) { } 432 virtual void stopListening(WebPlatformEventType type) { }
427 433
428 protected: 434 protected:
429 virtual ~Platform() { } 435 virtual ~Platform() { }
430 }; 436 };
431 437
432 } // namespace blink 438 } // namespace blink
433 439
434 #endif 440 #endif
OLDNEW
« no previous file with comments | « sky/engine/platform/fetcher/MojoFetcher.cpp ('k') | sky/engine/wtf/text/CString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698