| Index: content/public/browser/browser_context.h
|
| diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
|
| index 1e2564fddc7cece66b82cd70cc43f1a81aa3fbbf..147eab32d612742989f1c7045be97ff0ef926bd6 100644
|
| --- a/content/public/browser/browser_context.h
|
| +++ b/content/public/browser/browser_context.h
|
| @@ -10,6 +10,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/supports_user_data.h"
|
| #include "content/common/content_export.h"
|
| +#include "content/public/common/push_messaging_status.h"
|
|
|
| class GURL;
|
|
|
| @@ -86,6 +87,15 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
|
| const char* data, size_t length,
|
| const BlobCallback& callback);
|
|
|
| + // Delivers a push message with |data| to the Service Worker identified by
|
| + // |origin| and |service_worker_registration_id|.
|
| + static void DeliverPushMessage(
|
| + BrowserContext* browser_context,
|
| + const GURL& origin,
|
| + int64 service_worker_registration_id,
|
| + const std::string& data,
|
| + const base::Callback<void(PushMessagingStatus)>& callback);
|
| +
|
| // Ensures that the corresponding ResourceContext is initialized. Normally the
|
| // BrowserContext initializs the corresponding getters when its objects are
|
| // created, but if the embedder wants to pass the ResourceContext to another
|
|
|