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

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 42773002: Get ClientCertStore through ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes for comment #9 Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 354
355 private: 355 private:
356 class ResourceContext : public content::ResourceContext { 356 class ResourceContext : public content::ResourceContext {
357 public: 357 public:
358 explicit ResourceContext(ProfileIOData* io_data); 358 explicit ResourceContext(ProfileIOData* io_data);
359 virtual ~ResourceContext(); 359 virtual ~ResourceContext();
360 360
361 // ResourceContext implementation: 361 // ResourceContext implementation:
362 virtual net::HostResolver* GetHostResolver() OVERRIDE; 362 virtual net::HostResolver* GetHostResolver() OVERRIDE;
363 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; 363 virtual net::URLRequestContext* GetRequestContext() OVERRIDE;
364 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore() OVERRIDE;
364 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE; 365 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE;
365 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE; 366 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE;
366 367
367 private: 368 private:
368 friend class ProfileIOData; 369 friend class ProfileIOData;
369 370
370 // Helper method that returns true if |type| is allowed for |origin|, false 371 // Helper method that returns true if |type| is allowed for |origin|, false
371 // otherwise. 372 // otherwise.
372 bool AllowContentAccess(const GURL& origin, ContentSettingsType type); 373 bool AllowContentAccess(const GURL& origin, ContentSettingsType type);
373 374
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 536
536 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 537 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
537 bool initialized_on_UI_thread_; 538 bool initialized_on_UI_thread_;
538 539
539 bool is_incognito_; 540 bool is_incognito_;
540 541
541 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 542 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
542 }; 543 };
543 544
544 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 545 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698