summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/messaging/message_property_provider.h
diff options
context:
space:
mode:
authorrobertphillips@google.com <robertphillips@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-09 13:00:50 +0000
committerrobertphillips@google.com <robertphillips@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-09 13:00:50 +0000
commit91eeff80d24dcd70ec85c04ad13867c41c51540e (patch)
treeae2d748d6397d882b38becd9f40c2956deef30b6 /chrome/browser/extensions/api/messaging/message_property_provider.h
parent8ea8cd2f377a2cee31f15e85432a454a27fa0af2 (diff)
downloadchromium_src-91eeff80d24dcd70ec85c04ad13867c41c51540e.zip
chromium_src-91eeff80d24dcd70ec85c04ad13867c41c51540e.tar.gz
chromium_src-91eeff80d24dcd70ec85c04ad13867c41c51540e.tar.bz2
Revert 227722 "Introduce a new attribute to externally_connectable,"
> Introduce a new attribute to externally_connectable, > accepts_tls_channel_id. When sites are allowed to connect to an > extension, and specify include_tls_channel_id in their > chrome.runtime.connect or chrome.runtime.sendMessage options, > and the extension sets the accepts_tls_channel_id attribute, > automatically annotate the TLS channel ID as an attribute of the > MessageSender given to the onConnectExternal handler. > > BUG=259097 > > Review URL: https://codereview.chromium.org/23002007 TBR=juanlang@google.com Review URL: https://codereview.chromium.org/26686002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/messaging/message_property_provider.h')
-rw-r--r--chrome/browser/extensions/api/messaging/message_property_provider.h59
1 files changed, 0 insertions, 59 deletions
diff --git a/chrome/browser/extensions/api/messaging/message_property_provider.h b/chrome/browser/extensions/api/messaging/message_property_provider.h
deleted file mode 100644
index 849aaae..0000000
--- a/chrome/browser/extensions/api/messaging/message_property_provider.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_PROPERTY_PROVIDER_H_
-#define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_PROPERTY_PROVIDER_H_
-
-#include <string>
-
-#include "base/callback.h"
-
-class GURL;
-class Profile;
-
-namespace base {
-class TaskRunner;
-}
-
-namespace net {
-class URLRequestContextGetter;
-}
-
-namespace extensions {
-
-// This class provides properties of messages asynchronously.
-class MessagePropertyProvider {
- public:
- MessagePropertyProvider();
-
- typedef base::Callback<void(const std::string&)> DomainBoundCertCallback;
-
- // Gets the DER-encoded public key of the domain-bound cert,
- // aka TLS channel ID, for the given URL.
- // Runs |reply| on the current message loop.
- void GetDomainBoundCert(Profile* profile,
- const GURL& source_url,
- const DomainBoundCertCallback& reply);
-
- private:
- struct GetDomainBoundCertOutput;
-
- static void GetDomainBoundCertOnIOThread(
- scoped_refptr<base::TaskRunner> original_task_runner,
- scoped_refptr<net::URLRequestContextGetter> request_context_getter,
- const std::string& host,
- const DomainBoundCertCallback& reply);
-
- static void GotDomainBoundCert(
- scoped_refptr<base::TaskRunner> original_task_runner,
- struct GetDomainBoundCertOutput* output,
- const DomainBoundCertCallback& reply,
- int status);
-
- DISALLOW_COPY_AND_ASSIGN(MessagePropertyProvider);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_MESSAGING_MESSAGE_PROPERTY_PROVIDER_H_