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

Side by Side Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h

Issue 2444873002: Move WebMIMERegistry impl from //content to blink:platform/network/mime (Closed)
Patch Set: rebased Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ~TestingPlatformSupport() override; 128 ~TestingPlatformSupport() override;
129 129
130 // Platform: 130 // Platform:
131 WebString defaultLocale() override; 131 WebString defaultLocale() override;
132 WebCompositorSupport* compositorSupport() override; 132 WebCompositorSupport* compositorSupport() override;
133 WebThread* currentThread() override; 133 WebThread* currentThread() override;
134 WebBlobRegistry* getBlobRegistry() override; 134 WebBlobRegistry* getBlobRegistry() override;
135 WebClipboard* clipboard() override; 135 WebClipboard* clipboard() override;
136 WebFileUtilities* fileUtilities() override; 136 WebFileUtilities* fileUtilities() override;
137 WebIDBFactory* idbFactory() override; 137 WebIDBFactory* idbFactory() override;
138 WebMimeRegistry* mimeRegistry() override;
139 WebURLLoaderMockFactory* getURLLoaderMockFactory() override; 138 WebURLLoaderMockFactory* getURLLoaderMockFactory() override;
140 blink::WebURLLoader* createURLLoader() override; 139 blink::WebURLLoader* createURLLoader() override;
141
142 WebData loadResource(const char* name) override; 140 WebData loadResource(const char* name) override;
143 WebURLError cancelledError(const WebURL&) const override; 141 WebURLError cancelledError(const WebURL&) const override;
142 InterfaceProvider* interfaceProvider() override;
144 143
145 protected: 144 protected:
145 class TestingInterfaceProvider;
146
146 const Config m_config; 147 const Config m_config;
147 Platform* const m_oldPlatform; 148 Platform* const m_oldPlatform;
149 std::unique_ptr<TestingInterfaceProvider> m_interfaceProvider;
148 }; 150 };
149 151
150 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport { 152 class TestingPlatformSupportWithMockScheduler : public TestingPlatformSupport {
151 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler); 153 WTF_MAKE_NONCOPYABLE(TestingPlatformSupportWithMockScheduler);
152 154
153 public: 155 public:
154 TestingPlatformSupportWithMockScheduler(); 156 TestingPlatformSupportWithMockScheduler();
155 explicit TestingPlatformSupportWithMockScheduler(const Config&); 157 explicit TestingPlatformSupportWithMockScheduler(const Config&);
156 ~TestingPlatformSupportWithMockScheduler() override; 158 ~TestingPlatformSupportWithMockScheduler() override;
157 159
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 m_discardableMemoryAllocator; 208 m_discardableMemoryAllocator;
207 std::unique_ptr<DummyPlatform> m_platform; 209 std::unique_ptr<DummyPlatform> m_platform;
208 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport; 210 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport;
209 TestingPlatformSupport::Config m_testingPlatformConfig; 211 TestingPlatformSupport::Config m_testingPlatformConfig;
210 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport; 212 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport;
211 }; 213 };
212 214
213 } // namespace blink 215 } // namespace blink
214 216
215 #endif // TestingPlatformSupport_h 217 #endif // TestingPlatformSupport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698