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

Side by Side Diff: content/browser/webui/url_data_manager_backend.cc

Issue 1575763002: Make `content` target build without unused data members on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_disallow_copy_assign_linux_only
Patch Set: no deps Created 4 years, 11 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 (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 #include "content/browser/webui/url_data_manager_backend.h" 5 #include "content/browser/webui/url_data_manager_backend.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 } 480 }
481 return false; 481 return false;
482 } 482 }
483 483
484 class ChromeProtocolHandler 484 class ChromeProtocolHandler
485 : public net::URLRequestJobFactory::ProtocolHandler { 485 : public net::URLRequestJobFactory::ProtocolHandler {
486 public: 486 public:
487 // |is_incognito| should be set for incognito profiles. 487 // |is_incognito| should be set for incognito profiles.
488 ChromeProtocolHandler(ResourceContext* resource_context, 488 ChromeProtocolHandler(ResourceContext* resource_context,
489 bool is_incognito, 489 bool is_incognito,
490 AppCacheServiceImpl* appcache_service, 490 AppCacheServiceImpl* appcache_service,
jam 2016/01/13 16:17:50 should remove this parameter
mlamouri (slow - plz ping) 2016/01/14 20:13:39 Done.
491 ChromeBlobStorageContext* blob_storage_context) 491 ChromeBlobStorageContext* blob_storage_context)
492 : resource_context_(resource_context), 492 : resource_context_(resource_context),
493 is_incognito_(is_incognito), 493 is_incognito_(is_incognito),
494 appcache_service_(appcache_service),
495 blob_storage_context_(blob_storage_context) {} 494 blob_storage_context_(blob_storage_context) {}
496 ~ChromeProtocolHandler() override {} 495 ~ChromeProtocolHandler() override {}
497 496
498 net::URLRequestJob* MaybeCreateJob( 497 net::URLRequestJob* MaybeCreateJob(
499 net::URLRequest* request, 498 net::URLRequest* request,
500 net::NetworkDelegate* network_delegate) const override { 499 net::NetworkDelegate* network_delegate) const override {
501 DCHECK(request); 500 DCHECK(request);
502 501
503 // Check for chrome://view-http-cache/*, which uses its own job type. 502 // Check for chrome://view-http-cache/*, which uses its own job type.
504 if (ViewHttpCacheJobFactory::IsSupportedURL(request->url())) 503 if (ViewHttpCacheJobFactory::IsSupportedURL(request->url()))
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 bool IsSafeRedirectTarget(const GURL& location) const override { 543 bool IsSafeRedirectTarget(const GURL& location) const override {
545 return false; 544 return false;
546 } 545 }
547 546
548 private: 547 private:
549 // These members are owned by ProfileIOData, which owns this ProtocolHandler. 548 // These members are owned by ProfileIOData, which owns this ProtocolHandler.
550 content::ResourceContext* const resource_context_; 549 content::ResourceContext* const resource_context_;
551 550
552 // True when generated from an incognito profile. 551 // True when generated from an incognito profile.
553 const bool is_incognito_; 552 const bool is_incognito_;
554 AppCacheServiceImpl* appcache_service_;
555 ChromeBlobStorageContext* blob_storage_context_; 553 ChromeBlobStorageContext* blob_storage_context_;
556 554
557 DISALLOW_COPY_AND_ASSIGN(ChromeProtocolHandler); 555 DISALLOW_COPY_AND_ASSIGN(ChromeProtocolHandler);
558 }; 556 };
559 557
560 } // namespace 558 } // namespace
561 559
562 URLDataManagerBackend::URLDataManagerBackend() 560 URLDataManagerBackend::URLDataManagerBackend()
563 : next_request_id_(0) { 561 : next_request_id_(0) {
564 URLDataSource* shared_source = new SharedResourcesDataSource(); 562 URLDataSource* shared_source = new SharedResourcesDataSource();
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 799
802 } // namespace 800 } // namespace
803 801
804 net::URLRequestJobFactory::ProtocolHandler* 802 net::URLRequestJobFactory::ProtocolHandler*
805 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context, 803 CreateDevToolsProtocolHandler(content::ResourceContext* resource_context,
806 bool is_incognito) { 804 bool is_incognito) {
807 return new DevToolsJobFactory(resource_context, is_incognito); 805 return new DevToolsJobFactory(resource_context, is_incognito);
808 } 806 }
809 807
810 } // namespace content 808 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698