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

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

Issue 1154223003: NOT FOR COMMIT: POC of using AuthenticatingURLLoader in Sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: updated comment Created 5 years, 7 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 | « sky/engine/platform/fetcher/MojoFetcher.cpp ('k') | sky/services/platform/BUILD.gn » ('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 "sky/engine/public/platform/WebURLError.h" 40 #include "sky/engine/public/platform/WebURLError.h"
41 #include "sky/engine/public/platform/WebVector.h" 41 #include "sky/engine/public/platform/WebVector.h"
42 42
43 class GrContext; 43 class GrContext;
44 44
45 namespace base { 45 namespace base {
46 class SingleThreadTaskRunner; 46 class SingleThreadTaskRunner;
47 } 47 }
48 48
49 namespace mojo { 49 namespace mojo {
50 class AuthenticatingURLLoaderFactory;
50 class NetworkService; 51 class NetworkService;
51 } 52 }
52 53
53 namespace blink { 54 namespace blink {
54 55
55 class WebBlobRegistry; 56 class WebBlobRegistry;
56 class WebClipboard; 57 class WebClipboard;
57 class WebDiscardableMemory; 58 class WebDiscardableMemory;
58 class WebFallbackThemeEngine; 59 class WebFallbackThemeEngine;
59 class WebGraphicsContext3DProvider; 60 class WebGraphicsContext3DProvider;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); 145 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1);
145 146
146 // Returns the maximum amount of memory a decoded image should be allowed. 147 // Returns the maximum amount of memory a decoded image should be allowed.
147 // See comments on ImageDecoder::m_maxDecodedBytes. 148 // See comments on ImageDecoder::m_maxDecodedBytes.
148 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } 149 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; }
149 150
150 // Network ------------------------------------------------------------- 151 // Network -------------------------------------------------------------
151 152
152 virtual mojo::NetworkService* networkService() { return 0; } 153 virtual mojo::NetworkService* networkService() { return 0; }
153 154
155 virtual mojo::AuthenticatingURLLoaderFactory*
156 authenticatingURLLoaderFactory() {
157 return 0;
158 }
159
154 // Returns a new WebURLLoader instance. 160 // Returns a new WebURLLoader instance.
155 virtual WebURLLoader* createURLLoader() { return 0; } 161 virtual WebURLLoader* createURLLoader() { return 0; }
156 162
157 // A suggestion to cache this metadata in association with this URL. 163 // A suggestion to cache this metadata in association with this URL.
158 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { } 164 virtual void cacheMetadata(const WebURL&, double responseTime, const char* d ata, size_t dataSize) { }
159 165
160 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); } 166 virtual WebURLError cancelledError(const WebURL&) const { return WebURLError (); }
161 167
162 // Resources ----------------------------------------------------------- 168 // Resources -----------------------------------------------------------
163 169
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // This value must be checked again after a context loss event as the platfo rm's capabilities may have changed. 244 // This value must be checked again after a context loss event as the platfo rm's capabilities may have changed.
239 virtual bool canAccelerate2dCanvas() { return false; } 245 virtual bool canAccelerate2dCanvas() { return false; }
240 246
241 protected: 247 protected:
242 virtual ~Platform() { } 248 virtual ~Platform() { }
243 }; 249 };
244 250
245 } // namespace blink 251 } // namespace blink
246 252
247 #endif // SKY_ENGINE_PUBLIC_PLATFORM_PLATFORM_H_ 253 #endif // SKY_ENGINE_PUBLIC_PLATFORM_PLATFORM_H_
OLDNEW
« no previous file with comments | « sky/engine/platform/fetcher/MojoFetcher.cpp ('k') | sky/services/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698