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

Side by Side Diff: content/public/browser/ssl_host_state_delegate.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent Created 4 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_
7 7
8 #include <memory>
9
8 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/threading/non_thread_safe.h" 11 #include "base/threading/non_thread_safe.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 #include "net/cert/x509_certificate.h" 13 #include "net/cert/x509_certificate.h"
13 14
14 namespace content { 15 namespace content {
15 16
16 // The SSLHostStateDelegate encapulates the host-specific state for SSL errors. 17 // The SSLHostStateDelegate encapulates the host-specific state for SSL errors.
17 // For example, SSLHostStateDelegate remembers whether the user has whitelisted 18 // For example, SSLHostStateDelegate remembers whether the user has whitelisted
18 // a particular broken cert for use with particular host. We separate this 19 // a particular broken cert for use with particular host. We separate this
19 // state from the SSLManager because this state is shared across many navigation 20 // state from the SSLManager because this state is shared across many navigation
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // error combination exception is allowed, use QueryPolicy(). 65 // error combination exception is allowed, use QueryPolicy().
65 virtual bool HasAllowException(const std::string& host) const = 0; 66 virtual bool HasAllowException(const std::string& host) const = 0;
66 67
67 protected: 68 protected:
68 virtual ~SSLHostStateDelegate() {} 69 virtual ~SSLHostStateDelegate() {}
69 }; 70 };
70 71
71 } // namespace content 72 } // namespace content
72 73
73 #endif // CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_ 74 #endif // CONTENT_PUBLIC_BROWSER_SSL_HOST_STATE_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/screen_orientation_provider.h ('k') | content/public/browser/stream_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698