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

Side by Side Diff: chrome/browser/search/instant_service.h

Issue 13375003: Fixing iframe jank in the local omnibox popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing sites, too. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SEARCH_INSTANT_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_
6 #define CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ 6 #define CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 29 matching lines...) Expand all
40 // and since 72 is a valid uint64 the path is translated to a valid url, 40 // and since 72 is a valid uint64 the path is translated to a valid url,
41 // "http://bingo.com/", say. 41 // "http://bingo.com/", say.
42 static const std::string MaybeTranslateInstantPathOnUI( 42 static const std::string MaybeTranslateInstantPathOnUI(
43 Profile* profile, const std::string& path); 43 Profile* profile, const std::string& path);
44 static const std::string MaybeTranslateInstantPathOnIO( 44 static const std::string MaybeTranslateInstantPathOnIO(
45 const net::URLRequest* request, const std::string& path); 45 const net::URLRequest* request, const std::string& path);
46 static bool IsInstantPath(const GURL& url); 46 static bool IsInstantPath(const GURL& url);
47 47
48 // Add, remove, and query RenderProcessHost IDs that are associated with 48 // Add, remove, and query RenderProcessHost IDs that are associated with
49 // Instant processes. 49 // Instant processes.
50 void AddInstantProcess(int process_id); 50 void AddInstantProcess(int process_id, const GURL& site_url);
51 bool IsInstantProcess(int process_id) const; 51 bool IsInstantProcess(int process_id) const;
52 52
53 #if defined(UNIT_TEST) 53 #if defined(UNIT_TEST)
54 int GetInstantProcessCount() const { 54 int GetInstantProcessCount() const {
55 return process_ids_.size(); 55 return process_ids_.size();
56 } 56 }
57 #endif 57 #endif
58 58
59 // Most visited item API. 59 // Most visited item API.
60 60
(...skipping 30 matching lines...) Expand all
91 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_item_cache_; 91 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_item_cache_;
92 92
93 content::NotificationRegistrar registrar_; 93 content::NotificationRegistrar registrar_;
94 94
95 scoped_refptr<InstantIOContext> instant_io_context_; 95 scoped_refptr<InstantIOContext> instant_io_context_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(InstantService); 97 DISALLOW_COPY_AND_ASSIGN(InstantService);
98 }; 98 };
99 99
100 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ 100 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698