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

Side by Side Diff: chrome/browser/ui/webui/quota_internals_handler.cc

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/webui/quota_internals_handler.h" 5 #include "chrome/browser/ui/webui/quota_internals_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/ui/webui/quota_internals_proxy.h" 13 #include "chrome/browser/ui/webui/quota_internals_proxy.h"
14 #include "chrome/browser/ui/webui/quota_internals_types.h" 14 #include "chrome/browser/ui/webui/quota_internals_types.h"
15 #include "content/browser/webui/web_ui.h"
15 #include "net/base/net_util.h" 16 #include "net/base/net_util.h"
16 17
17 namespace quota_internals { 18 namespace quota_internals {
18 19
19 QuotaInternalsHandler::QuotaInternalsHandler() {} 20 QuotaInternalsHandler::QuotaInternalsHandler() {}
20 21
21 QuotaInternalsHandler::~QuotaInternalsHandler() { 22 QuotaInternalsHandler::~QuotaInternalsHandler() {
22 if (proxy_) 23 if (proxy_)
23 proxy_->handler_ = NULL; 24 proxy_->handler_ = NULL;
24 } 25 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 value); 81 value);
81 } 82 }
82 83
83 void QuotaInternalsHandler::OnRequestInfo(const base::ListValue*) { 84 void QuotaInternalsHandler::OnRequestInfo(const base::ListValue*) {
84 if (!proxy_) 85 if (!proxy_)
85 proxy_ = new QuotaInternalsProxy(this); 86 proxy_ = new QuotaInternalsProxy(this);
86 proxy_->RequestInfo(Profile::FromWebUI(web_ui())->GetQuotaManager()); 87 proxy_->RequestInfo(Profile::FromWebUI(web_ui())->GetQuotaManager());
87 } 88 }
88 89
89 } // namespace quota_internals 90 } // namespace quota_internals
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/quota_internals_handler.h ('k') | chrome/browser/ui/webui/sessions_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698