Home | History | Annotate | Download | only in net
      1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // This file has shared types used across IPC between render_dns_master.cc
      6 // and dns_master.cc
      7 
      8 #ifndef CHROME_COMMON_NET_PREDICTOR_COMMON_H_
      9 #define CHROME_COMMON_NET_PREDICTOR_COMMON_H_
     10 #pragma once
     11 
     12 #include <string>
     13 #include <vector>
     14 
     15 #include "googleurl/src/gurl.h"
     16 
     17 namespace chrome_common_net {
     18 
     19 // IPC messages are passed from the renderer to the browser in the form of
     20 // Namelist instances.
     21 // Each element of this vector is a hostname that needs to be looked up.
     22 // The hostnames should never be empty strings.
     23 typedef std::vector<std::string> NameList;
     24 // TODO(jar): We still need to switch to passing scheme/host/port in UrlList,
     25 // instead of NameList, from renderer (where content of pages are scanned for
     26 // links) to browser (where we perform predictive actions).
     27 typedef std::vector<GURL> UrlList;
     28 }
     29 
     30 #endif  // CHROME_COMMON_NET_PREDICTOR_COMMON_H_
     31