Index: net/base/net_module.h |
=================================================================== |
--- net/base/net_module.h (revision 5738) |
+++ net/base/net_module.h (working copy) |
@@ -8,6 +8,7 @@ |
#include <string> |
#include "base/basictypes.h" |
+#include "base/string_piece.h" |
namespace net { |
@@ -20,7 +21,7 @@ |
// |
class NetModule { |
public: |
- typedef std::string (*ResourceProvider)(int key); |
+ typedef StringPiece (*ResourceProvider)(int key); |
// Set the function to call when the net module needs resources |
static void SetResourceProvider(ResourceProvider func); |
@@ -28,7 +29,7 @@ |
// Call the resource provider (if one exists) to get the specified resource. |
// Returns an empty string if the resource does not exist or if there is no |
// resource provider. |
- static std::string GetResource(int key); |
+ static StringPiece GetResource(int key); |
private: |
DISALLOW_IMPLICIT_CONSTRUCTORS(NetModule); |