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

Side by Side Diff: chrome/browser/tabs/pinned_tab_codec.cc

Issue 6672070: Move the remaining files in chrome\common to content\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/tabs/pinned_tab_codec.h" 5 #include "chrome/browser/tabs/pinned_tab_codec.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/browser_list.h" 8 #include "chrome/browser/browser_list.h"
9 #include "chrome/browser/prefs/pref_service.h" 9 #include "chrome/browser/prefs/pref_service.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/tabs/tab_strip_model.h" 11 #include "chrome/browser/tabs/tab_strip_model.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
14 #include "chrome/common/extensions/extension.h" 14 #include "chrome/common/extensions/extension.h"
15 #include "chrome/common/page_transition_types.h"
16 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
17 #include "content/browser/tab_contents/tab_contents.h" 16 #include "content/browser/tab_contents/tab_contents.h"
17 #include "content/common/page_transition_types.h"
18 18
19 typedef BrowserInit::LaunchWithProfile::Tab Tab; 19 typedef BrowserInit::LaunchWithProfile::Tab Tab;
20 20
21 // Key used in dictionaries for the app id. 21 // Key used in dictionaries for the app id.
22 static const char kAppID[] = "app_id"; 22 static const char kAppID[] = "app_id";
23 23
24 // Key used in dictionaries for the url. 24 // Key used in dictionaries for the url.
25 static const char kURL[] = "url"; 25 static const char kURL[] = "url";
26 26
27 // Returns true if |browser| has any pinned tabs. 27 // Returns true if |browser| has any pinned tabs.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 for (size_t i = 0, max = pref_value->GetSize(); i < max; ++i) { 124 for (size_t i = 0, max = pref_value->GetSize(); i < max; ++i) {
125 DictionaryValue* values = NULL; 125 DictionaryValue* values = NULL;
126 if (pref_value->GetDictionary(i, &values)) { 126 if (pref_value->GetDictionary(i, &values)) {
127 Tab tab; 127 Tab tab;
128 if (DecodeTab(*values, &tab)) 128 if (DecodeTab(*values, &tab))
129 results.push_back(tab); 129 results.push_back(tab);
130 } 130 }
131 } 131 }
132 return results; 132 return results;
133 } 133 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.h ('k') | chrome/browser/tabs/tab_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698