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

Side by Side Diff: net/base/net_module.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « net/base/net_log_util_unittest.cc ('k') | net/base/net_module.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_BASE_NET_MODULE_H__
6 #define NET_BASE_NET_MODULE_H__
7
8 #include "base/basictypes.h"
9 #include "base/strings/string_piece.h"
10 #include "net/base/net_export.h"
11
12 namespace net {
13
14 // Defines global initializers and associated methods for the net module.
15 //
16 // The network module does not have direct access to the way application
17 // resources are stored and fetched by the embedding application (e.g., it
18 // cannot see the ResourceBundle class used by Chrome), so it uses this API to
19 // get access to such resources.
20 //
21 class NET_EXPORT NetModule {
22 public:
23 typedef base::StringPiece (*ResourceProvider)(int key);
24
25 // Set the function to call when the net module needs resources
26 static void SetResourceProvider(ResourceProvider func);
27
28 // Call the resource provider (if one exists) to get the specified resource.
29 // Returns an empty string if the resource does not exist or if there is no
30 // resource provider.
31 static base::StringPiece GetResource(int key);
32
33 private:
34 DISALLOW_IMPLICIT_CONSTRUCTORS(NetModule);
35 };
36
37 } // namespace net
38
39 #endif // NET_BASE_NET_MODULE_H__
OLDNEW
« no previous file with comments | « net/base/net_log_util_unittest.cc ('k') | net/base/net_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698